1USB_HCD_LINK_URB_TO_(9) Host Controller APIs USB_HCD_LINK_URB_TO_(9)
2
3
4
6 usb_hcd_link_urb_to_ep - add an URB to its endpoint queue
7
9 int usb_hcd_link_urb_to_ep(struct usb_hcd * hcd, struct urb * urb);
10
12 hcd
13 host controller to which urb was submitted
14
15 urb
16 URB being submitted
17
19 Host controller drivers should call this routine in their enqueue
20 method. The HCD's private spinlock must be held and interrupts must be
21 disabled. The actions carried out here are required for URB submission,
22 as well as for endpoint shutdown and for usb_kill_urb.
23
25 0 for no error, otherwise a negative error code (in which case the
26 enqueue method must fail). If no error occurs but enqueue fails anyway,
27 it must call usb_hcd_unlink_urb_from_ep before releasing the private
28 spinlock and returning.
29
31Kernel Hackers Manual 3.10 June 2019 USB_HCD_LINK_URB_TO_(9)