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

NAME

6       usb_string_ids_tab - allocate unused string IDs in batch
7

SYNOPSIS

9       int usb_string_ids_tab(struct usb_composite_dev * cdev,
10                              struct usb_string * str);
11

ARGUMENTS

13       cdev
14           the device whose string descriptor IDs are being allocated
15
16       str
17           an array of usb_string objects to assign numbers to
18

CONTEXT

20       single threaded during gadget setup
21

DESCRIPTION

23       usb_string_ids() is called from bind callbacks to allocate string IDs.
24       Drivers for functions, configurations, or gadgets will then copy IDs
25       from the string table to the appropriate descriptors and string table
26       for other languages.
27
28       All string identifier should be allocated using this, usb_string_id()
29       or usb_string_ids_n() routine, to ensure that for example different
30       functions don't wrongly assign different meanings to the same
31       identifier.
32

AUTHOR

34       David Brownell <dbrownell@users.sourceforge.net>
35           Author.
36
38Kernel Hackers Manual 3.10         June 2019             USB_STRING_IDS_TAB(9)
Impressum