---
name: "usb_ep_set_wedge"
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_set_wedge"
---

# usb\_ep\_set\_wedge(9)

sets the halt feature and ignores clear requests

## NAME

usb\_ep\_set\_wedge - sets the halt feature and ignores clear requests

## SYNOPSIS

**int usb\_ep\_set\_wedge(struct usb\_ep \*** *ep***);**

## ARGUMENTS

*ep*

the endpoint being wedged

## DESCRIPTION

Use this to stall an endpoint and ignore CLEAR\_FEATURE(HALT\_ENDPOINT) requests. If the gadget driver clears the halt status, it will automatically unwedge the endpoint.

Returns zero on success, else negative errno.

## AUTHOR

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

Author.

## COPYRIGHT
