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

Popular posts from this blog

iMovie event library on a network drive, NAS

Proxmox PCIe passthrough on HP gen8 - failed to set iommu for container

Easy-rsa fails with "Missing or invalid OpenSSL"