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 routine, to ensure
24       that for example different functions donĀ“t wrongly assign different
25       meanings to the same identifier.
26

AUTHOR

28       David Brownell <dbrownell@users.sourceforge.net>
29           Author.
30
32Kernel Hackers Manual 2.6.         June 2019                  USB_STRING_ID(9)
Impressum