LDD3 notes: USB
My notes while reading Linux Device Drivers 3rd edition.
General
- naming: root_hub-hub_port[-hub_port]:config.interface
- write to bConfigurationValue will switch configuration & bound driver
URBs
- 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)
Comments
Post a Comment