Query: usb_interface_id
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
USB_INTERFACE_ID(9) Kernel Mode Gadget API USB_INTERFACE_ID(9)NAMEusb_interface_id - allocate an unused interface IDSYNOPSISint usb_interface_id(struct usb_configuration * config, struct usb_function * function);ARGUMENTSconfig configuration associated with the interface function function handling the interfaceCONTEXTsingle threaded during gadget setupDESCRIPTIONusb_interface_id is called from usb_function.bind callbacks to allocate new interface IDs. The function driver will then store that ID in interface, association, CDC union, and other descriptors. It will also handle any control requests targeted at that interface, particularly changing its altsetting via set_alt. There may also be class-specific or vendor-specific requests to handle. All interface identifier should be allocated using this routine, to ensure that for example different functions don't wrongly assign different meanings to the same identifier. Note that since interface identifiers are configuration-specific, functions used in more than one configuration (or more than once in a given configuration) need multiple versions of the relevant descriptors. Returns the interface ID which was allocated; or -ENODEV if no more interface IDs can be allocated.AUTHORDavid Brownell <dbrownell@users.sourceforge.net> Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 USB_INTERFACE_ID(9)
Related Man Pages |
---|
usb_interface_id(9) - suse |
struct_usb_configuration(9) - centos |
usb_gadget_config_buf(9) - centos |
usb_gstrings_attach(9) - centos |
usb_gadget_config_buf(9) - suse |
Similar Topics in the Unix Linux Community |
---|
Which Vaccinations Are You Current (Up to Date)? (CDC, US Immunizations 2009) |