---
name: "usb_ep_disable"
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_disable"
---

# usb\_ep\_disable(9)

endpoint is no longer usable

## NAME

usb\_ep\_disable - endpoint is no longer usable

## SYNOPSIS

**int usb\_ep\_disable(struct usb\_ep \*** *ep***);**

## ARGUMENTS

*ep*

the endpoint being unconfigured. may not be the endpoint named “ep0”.

## DESCRIPTION

no other task may be using this endpoint when this is called. any pending and uncompleted requests will complete with status indicating disconnect (-ESHUTDOWN) before this call returns. gadget drivers must call **usb\_ep\_enable** again before queueing requests to the endpoint.

returns zero, or a negative error code.

## AUTHOR

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

Author.

## COPYRIGHT
