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

NAME

6       usb_function_deactivate - prevent function and gadget enumeration
7

SYNOPSIS

9       int usb_function_deactivate(struct usb_function * function);
10

ARGUMENTS

12       function
13           the function that isn't yet ready to respond
14

DESCRIPTION

16       Blocks response of the gadget driver to host enumeration by preventing
17       the data line pullup from being activated. This is normally called
18       during bind() processing to change from the initial “ready to respond”
19       state, or when a required resource becomes available.
20
21       For example, drivers that serve as a passthrough to a userspace daemon
22       can block enumeration unless that daemon (such as an OBEX, MTP, or
23       print server) is ready to handle host requests.
24
25       Not all systems support software control of their USB peripheral data
26       pullups.
27
28       Returns zero on success, else negative errno.
29

AUTHOR

31       David Brownell <dbrownell@users.sourceforge.net>
32           Author.
33
35Kernel Hackers Manual 3.10         June 2019           USB_FUNCTION_DEACTIV(9)
Impressum