1USB_HCD_GIVEBACK_URB(9)      Host Controller APIs      USB_HCD_GIVEBACK_URB(9)
2
3
4

NAME

6       usb_hcd_giveback_urb - return URB from HCD to device driver
7

SYNOPSIS

9       void usb_hcd_giveback_urb(struct usb_hcd * hcd, struct urb * urb,
10                                 int status);
11

ARGUMENTS

13       hcd
14           host controller returning the URB
15
16       urb
17           urb being returned to the USB device driver.
18
19       status
20           completion status code for the URB.
21

CONTEXT

23       in_interrupt
24

DESCRIPTION

26       This hands the URB from HCD to its USB device driver, using its
27       completion function. The HCD has freed all per-urb resources (and is
28       done using urb->hcpriv). It also released all HCD locks; the device
29       driver won´t cause problems if it frees, modifies, or resubmits this
30       URB.
31
32       If urb was unlinked, the value of status will be overridden by
33       urb->unlinked. Erroneous short transfers are detected in case the HCD
34       hasn´t checked for them.
35
37Kernel Hackers Manual 2.6.         June 2019           USB_HCD_GIVEBACK_URB(9)
Impressum