'\" t .\" Title: usb_ep_dequeue .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Kernel Mode Gadget API .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "USB_EP_DEQUEUE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Kernel Mode Gadget API" .\" ----------------------------------------------------------------- .\" * 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_ep_dequeue \- dequeues (cancels, unlinks) an I/O request from an endpoint .SH "SYNOPSIS" .HP \w'int\ usb_ep_dequeue('u .BI "int usb_ep_dequeue(struct\ usb_ep\ *\ " "ep" ", struct\ usb_request\ *\ " "req" ");" .SH "ARGUMENTS" .PP \fIep\fR .RS 4 the endpoint associated with the request .RE .PP \fIreq\fR .RS 4 the request being canceled .RE .SH "DESCRIPTION" .PP if the request is still active on the endpoint, it is dequeued and its completion routine is called (with status \-ECONNRESET); else a negative error code is returned\&. .PP note that some hardware can\*(Aqt clear out write fifos (to unlink the request at the head of the queue) except as part of disconnecting from usb\&. such restrictions prevent drivers from supporting configuration changes, even to configuration zero (a \(lqchapter 9\(rq requirement)\&. .SH "AUTHOR" .PP \fBDavid Brownell\fR <\&dbrownell@users.sourceforge.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br