'\" t .\" Title: usb_hcd_giveback_urb .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Host Controller APIs .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "USB_HCD_GIVEBACK_URB" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Host Controller APIs" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" usb_hcd_giveback_urb \- return URB from HCD to device driver .SH "SYNOPSIS" .HP \w'void\ usb_hcd_giveback_urb('u .BI "void usb_hcd_giveback_urb(struct\ usb_hcd\ *\ " "hcd" ", struct\ urb\ *\ " "urb" ", int\ " "status" ");" .SH "ARGUMENTS" .PP \fIhcd\fR .RS 4 host controller returning the URB .RE .PP \fIurb\fR .RS 4 urb being returned to the USB device driver\&. .RE .PP \fIstatus\fR .RS 4 completion status code for the URB\&. .RE .SH "CONTEXT" .PP \fBin_interrupt\fR .SH "DESCRIPTION" .PP This hands the URB from HCD to its USB device driver, using its completion function\&. The HCD has freed all per\-urb resources (and is done using urb\->hcpriv)\&. It also released all HCD locks; the device driver won\*(Aqt cause problems if it frees, modifies, or resubmits this URB\&. .PP If \fIurb\fR was unlinked, the value of \fIstatus\fR will be overridden by \fIurb\fR\->unlinked\&. Erroneous short transfers are detected in case the HCD hasn\*(Aqt checked for them\&. .SH "COPYRIGHT" .br