1USB_ADD_FUNCTION(9) Kernel Mode Gadget API USB_ADD_FUNCTION(9)
2
3
4
6 usb_add_function - add a function to a configuration
7
9 int usb_add_function(struct usb_configuration * config,
10 struct usb_function * function);
11
13 config
14 the configuration
15
16 function
17 the function being added
18
20 single threaded during gadget setup
21
23 After initialization, each configuration must have one or more
24 functions added to it. Adding a function involves calling its bind()
25 method to allocate resources such as interface and string identifiers
26 and endpoints.
27
28 This function returns the value of the function's bind, which is zero
29 for success else a negative errno value.
30
32 David Brownell <dbrownell@users.sourceforge.net>
33 Author.
34
36Kernel Hackers Manual 3.10 June 2019 USB_ADD_FUNCTION(9)