'\" t .\" Title: usb_hcd_link_urb_to_ep .\" 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_LINK_URB_TO_" "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_link_urb_to_ep \- add an URB to its endpoint queue .SH "SYNOPSIS" .HP \w'int\ usb_hcd_link_urb_to_ep('u .BI "int usb_hcd_link_urb_to_ep(struct\ usb_hcd\ *\ " "hcd" ", struct\ urb\ *\ " "urb" ");" .SH "ARGUMENTS" .PP \fIhcd\fR .RS 4 host controller to which \fIurb\fR was submitted .RE .PP \fIurb\fR .RS 4 URB being submitted .RE .SH "DESCRIPTION" .PP Host controller drivers should call this routine in their \fBenqueue\fR method\&. The HCD\*(Aqs 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\&. .SH "RETURN" .PP 0 for no error, otherwise a negative error code (in which case the \fBenqueue\fR method must fail)\&. If no error occurs but \fBenqueue\fR fails anyway, it must call \fBusb_hcd_unlink_urb_from_ep\fR before releasing the private spinlock and returning\&. .SH "COPYRIGHT" .br