Thursday, May 20, 2010

LDD3 notes: USB

My notes while reading Linux Device Drivers 3rd edition.


  • naming: root_hub-hub_port[-hub_port]:config.interface
  • write to bConfigurationValue will switch configuration & bound driver


  • skbuff analogy
  • queued, async, acknowledged
  • usb_alloc_urb(), usb_fill_[int|bulk]_urb(), usb_submit_urb()
  • transfer buffers must be kmalloc():ed, not static or automatic

device_id's can match

  • specific vendor/product
  • whole device class / subclass /protocol
  • individual interface class

MODULE_DEVICE_TABLE(usb, usb_device_id table)

No comments:

Post a Comment