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

NAME

6       usb_string_id - allocate an unused string ID
7

SYNOPSIS

9       int usb_string_id(struct usb_composite_dev * cdev);
10

ARGUMENTS

12       cdev
13           the device whose string descriptor IDs are being allocated
14

CONTEXT

16       single threaded during gadget setup
17

DESCRIPTION

19       usb_string_id() is called from bind callbacks to allocate string IDs.
20       Drivers for functions, configurations, or gadgets will then store that
21       ID in the appropriate descriptors and string table.
22
23       All string identifier should be allocated using this,
24       usb_string_ids_tab() or usb_string_ids_n() routine, to ensure that for
25       example different functions don't wrongly assign different meanings to
26       the same identifier.
27

AUTHOR

29       David Brownell <dbrownell@users.sourceforge.net>
30           Author.
31
33Kernel Hackers Manual 3.10         June 2019                  USB_STRING_ID(9)
Impressum