---
name: "usb_ep_dequeue"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_ep_dequeue"
---

# usb\_ep\_dequeue(9)

dequeues (cancels, unlinks) an I/O request from an endpoint

## NAME

usb\_ep\_dequeue - dequeues (cancels, unlinks) an I/O request from an endpoint

## SYNOPSIS

**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

## DESCRIPTION

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).

## AUTHOR

**David Brownell** \<dbrownell@users.sourceforge.net\>

Author.

## COPYRIGHT
