usb_hcd_giveback_urb(9)

usb_hcd_giveback_urb9

Return urb from hcd to device driver

Usage

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

Arguments

hcd

host controller returning the URB

urb

urb being returned to the USB device driver.

status

completion status code for the URB.

Context

in_interrupt

Overview

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't cause problems if it frees, modifies, or resubmits this URB.

If urb was unlinked, the value of status will be overridden by urb->unlinked. Erroneous short transfers are detected in case the HCD hasn't checked for them.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.