1USB_EP_ENABLE(9)            Kernel Mode Gadget API            USB_EP_ENABLE(9)
2
3
4

NAME

6       usb_ep_enable - configure endpoint, making it usable
7

SYNOPSIS

9       int usb_ep_enable(struct usb_ep * ep);
10

ARGUMENTS

12       ep
13           the endpoint being configured. may not be the endpoint named “ep0”.
14           drivers discover endpoints through the ep_list of a usb_gadget.
15

DESCRIPTION

17       When configurations are set, or when interface settings change, the
18       driver will enable or disable the relevant endpoints. while it is
19       enabled, an endpoint may be used for i/o until the driver receives a
20       disconnect from the host or until the endpoint is disabled.
21
22       the ep0 implementation (which calls this routine) must ensure that the
23       hardware capabilities of each endpoint match the descriptor provided
24       for it. for example, an endpoint named “ep2in-bulk” would be usable for
25       interrupt transfers as well as bulk, but it likely couldn't be used for
26       iso transfers or for endpoint 14. some endpoints are fully
27       configurable, with more generic names like “ep-a”. (remember that for
28       USB, “in” means “towards the USB master”.)
29
30       returns zero, or a negative error code.
31

AUTHOR

33       David Brownell <dbrownell@users.sourceforge.net>
34           Author.
35
37Kernel Hackers Manual 3.10         June 2019                  USB_EP_ENABLE(9)
Impressum