usb_ep_dequeue(9)

usb_ep_dequeue9

Dequeues (cancels, unlinks) an i/o request from an endpoint

Usage

int usb_ep_dequeue(struct usb_ep * ep, struct usb_request * req);

Arguments

ep

the endpoint associated with the request

req

the request being canceled

Overview

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.

note that some hardware can't 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 “chapter 9” requirement).

Releases

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

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

Author

David Brownell <[email protected]>

Author.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.