Query: usb_ep_set_halt
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
USB_EP_SET_HALT(9) Kernel Mode Gadget API USB_EP_SET_HALT(9)NAMEusb_ep_set_halt - sets the endpoint halt feature.SYNOPSISint usb_ep_set_halt(struct usb_ep * ep);ARGUMENTSep the non-isochronous endpoint being stalledDESCRIPTIONUse this to stall an endpoint, perhaps as an error report. Except for control endpoints, the endpoint stays halted (will not stream any data) until the host clears this feature; drivers may need to empty the endpoint's request queue first, to make sure no inappropriate transfers happen. Note that while an endpoint CLEAR_FEATURE will be invisible to the gadget driver, a SET_INTERFACE will not be. To reset endpoints for the current altsetting, see usb_ep_clear_halt. When switching altsettings, it's simplest to use usb_ep_enable or usb_ep_disable for the endpoints. Returns zero, or a negative error code. On success, this call sets underlying hardware state that blocks data transfers. Attempts to halt IN endpoints will fail (returning -EAGAIN) if any transfer requests are still queued, or if the controller hardware (usually a FIFO) still holds bytes that the host hasn't collected.AUTHORDavid Brownell <dbrownell@users.sourceforge.net> Author.COPYRIGHTKernel Hackers Manual 2.6. July 2010 USB_EP_SET_HALT(9)
Related Man Pages |
---|
usb_ep_enable(9) - suse |
usb_set_interface(9) - suse |
struct_usb_ep(9) - centos |
struct_usb_gadget_driver(9) - suse |
ubtbcmfw(4) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Change directory error |
Getting command output to putty window title. |
Migrating to UNIX |
Update kernel Linux without reboot?! |
SOCKS proxy & PAM configuration exposure |