Query: usb_add_config
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
USB_ADD_CONFIG(9) Kernel Mode Gadget API USB_ADD_CONFIG(9)NAMEusb_add_config - add a configuration to a device.SYNOPSISint usb_add_config(struct usb_composite_dev * cdev, struct usb_configuration * config);ARGUMENTScdev wraps the USB gadget config the configuration, with bConfigurationValue assignedCONTEXTsingle threaded during gadget setupDESCRIPTIONOne of the main tasks of a composite driver's bind routine is to add each of the configurations it supports, using this routine. This function returns the value of the configuration's bind, which is zero for success else a negative errno value. Binding configurations assigns global resources including string IDs, and per-configuration resources such as interface IDs and endpoints.AUTHORDavid Brownell <dbrownell@users.sourceforge.net> Author.COPYRIGHTKernel Hackers Manual 2.6. July 2010 USB_ADD_CONFIG(9)