Query: usb_hcd_link_urb_to_ep
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
USB_HCD_LINK_URB_TO_(9) Host Controller APIs USB_HCD_LINK_URB_TO_(9)NAMEusb_hcd_link_urb_to_ep - add an URB to its endpoint queueSYNOPSISint usb_hcd_link_urb_to_ep(struct usb_hcd * hcd, struct urb * urb);ARGUMENTShcd host controller to which urb was submitted urb URB being submittedDESCRIPTIONHost controller drivers should call this routine in their enqueue method. The HCD's private spinlock must be held and interrupts must be disabled. The actions carried out here are required for URB submission, as well as for endpoint shutdown and for usb_kill_urb.RETURN0 for no error, otherwise a negative error code (in which case the enqueue method must fail). If no error occurs but enqueue fails anyway, it must call usb_hcd_unlink_urb_from_ep before releasing the private spinlock and returning.COPYRIGHTKernel Hackers Manual 3.10 June 2014 USB_HCD_LINK_URB_TO_(9)