usb_string_id

Langue: en

Version: May 2009 (fedora - 06/07/09)

Section: 9 (Appels noyau Linux)

NAME

usb_string_id - allocate an unused string ID

SYNOPSIS

int usb_string_id(struct usb_composite_dev * cdev);

ARGUMENTS

cdev

the device whose string descriptor IDs are being allocated

CONTEXT

single threaded during gadget setup

DESCRIPTION

usb_string_id() is called from bind callbacks to allocate string IDs. Drivers for functions, configurations, or gadgets will then store that ID in the appropriate descriptors and string table.

All string identifier should be allocated using this routine, to ensure that for example different functions don't wrongly assign different meanings to the same identifier.

AUTHOR

David Brownell <dbrownell@users.sourceforge.net>

Author.