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

NAME

6       usb_add_config - add a configuration to a device.
7

SYNOPSIS

9       int usb_add_config(struct usb_composite_dev * cdev,
10                          struct usb_configuration * config);
11

ARGUMENTS

13       cdev
14           wraps the USB gadget
15
16       config
17           the configuration, with bConfigurationValue assigned
18

CONTEXT

20       single threaded during gadget setup
21

DESCRIPTION

23       One of the main tasks of a composite driverĀ“s bind routine is to add
24       each of the configurations it supports, using this routine.
25
26       This function returns the value of the configurationĀ“s bind, which is
27       zero for success else a negative errno value. Binding configurations
28       assigns global resources including string IDs, and per-configuration
29       resources such as interface IDs and endpoints.
30

AUTHOR

32       David Brownell <dbrownell@users.sourceforge.net>
33           Author.
34
36Kernel Hackers Manual 2.6.         June 2019                 USB_ADD_CONFIG(9)
Impressum