int usb_get_descriptor (struct usb_device * dev, unsigned char type, unsigned char index, void * buf, int size);
Gets a USB descriptor. Convenience functions exist to simplify getting some types of descriptors. Use usb_get_device_descriptor for USB_DT_DEVICE, and usb_get_string or usb_string for USB_DT_STRING. Configuration descriptors (USB_DT_CONFIG) are part of the device structure, at least for the current configuration. In addition to a number of USB-standard descriptors, some devices also use class-specific or vendor-specific descriptors.
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.
This documentation was generated with kernel version 2.6.0.