next up previous contents index
Next: Standard Device Requests Up: Configuring USB Devices Previous: Configuring USB Devices   Contents   Index

Descriptor Data Structures

The Linux USB subsystem describes the hierarchical structure of descriptors by extending or embedding the standard USB descriptors with or in a subsystem specific structure. This structure helps storing pointers to the selected configuration and interfaces.

The elements of these structures are only explained in detail as far as they are necessary for subsequent API calls. Detailed information about the descriptors can be found in usb.h and [4] section 9.5.


struct usb_device{
  ...
  struct usb_config_descriptor *actconfig;/* the active configuration */
  ...
  struct usb_device_descriptor descriptor;/* Descriptor */
  struct usb_config_descriptor *config;	/* All of the configs */
}
The usb_device structure is the root of all USB specific descriptors. Sometimes it is necessary to parse the descriptors within a driver to configure the device or to setup transfer requests properly.


next up previous contents index
Next: Standard Device Requests Up: Configuring USB Devices Previous: Configuring USB Devices   Contents   Index
Detlef Fliegl
2001-01-08