The Linux-USB Host Side API | ||
---|---|---|
<<< Previous | Next >>> |
the device whose string descriptor is being retrieved
code for language chosen (from string descriptor zero)
the number of the descriptor
where to put the string
how big is "buf"?
Retrieves a string, encoded using UTF-16LE (Unicode, 16 bits per character, in little-endian byte order). The usb_string function will often be a convenient way to turn these strings into kernel-printable form.
Strings may be referenced in device, configuration, interface, or other descriptors, and could also be used in vendor-specific ways.
This call is synchronous, and may not be used in an interrupt context.
Returns the number of bytes received on success, or else the status code returned by the underlying usb_control_msg call.
<<< Previous | Home | Next >>> |
usb_get_descriptor | Up | usb_string |