Query: usb_gadget_config_buf
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
USB_GADGET_CONFIG_BU(9) Kernel Mode Gadget API USB_GADGET_CONFIG_BU(9)NAMEusb_gadget_config_buf - builts a complete configuration descriptorSYNOPSISint usb_gadget_config_buf(const struct usb_config_descriptor * config, void * buf, unsigned length, const struct usb_descriptor_header ** desc);ARGUMENTSconfig Header for the descriptor, including characteristics such as power requirements and number of interfaces. buf Buffer for the resulting configuration descriptor. length Length of buffer. If this is not big enough to hold the entire configuration descriptor, an error code will be returned. desc Null-terminated vector of pointers to the descriptors (interface, endpoint, etc) defining all functions in this device configuration.DESCRIPTIONThis copies descriptors into the response buffer, building a descriptor for that configuration. It returns the buffer length or a negative status code. The config.wTotalLength field is set to match the length of the result, but other descriptor fields (including power usage and interface count) must be set by the caller. Gadget drivers could use this when constructing a config descriptor in response to USB_REQ_GET_DESCRIPTOR. They will need to patch the resulting bDescriptorType value if USB_DT_OTHER_SPEED_CONFIG is needed.AUTHORDavid Brownell <dbrownell@users.sourceforge.net> Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 USB_GADGET_CONFIG_BU(9)
Related Man Pages |
---|
struct_usb_gadget_driver(9) - centos |
usb_interface_id(9) - centos |
struct_usb_configuration(9) - suse |
usb_gadget_config_buf(9) - suse |
usb_cfg_descr(9s) - sunos |
Similar Topics in the Unix Linux Community |
---|
Gadget Love |