Next: Framework Entry Points
Up: The USB Device Driver
Previous: The USB Device Driver
  Contents
  Index
All USB related functions or data structures follow the same naming
convention and start with usb_. Figure 4 shows the
structure needed to register a USB device driver at the subsystem.
Figure 4:
usb_driver structure
 |
- name: Usually the name of the module.
- probe: The entry point of the probe function.
- disconnect: The entry point of the disconnect function.
- driver_list: For internal use of the subsystem - initialize to
{NULL,NULL}
- fops: The usual list of file operations for a driver
- minor: The base minor number assigned to this device (the value has
to be a multiple of 16)
- serialize:
- ioctl:
- id_table:
Detlef Fliegl
2001-01-08