最終更新:2018-01-12 (金) 08:11:28 (2286d)  

generic-usb
Top / generic-usb

The "HID Device Driver" is the driver that parses HID reports and reacts on them.

http://lxr.free-electrons.com/source/Documentation/hid/uhid.txt?v=3.17

http://lxr.free-electrons.com/source/Documentation/hid/uhid.txt?v=3.6

メモ

Linux 3.2

  • マウスをつなぐとgeneric-usbになる
    [ 1022.524733] usb 2-2.2: new low-speed USB device number 7 using uhci_hcd
    [ 1022.895671] input: USB Optical Mouse as /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.2/2-2.2:1.0/input/input5
    [ 1022.896039] generic-usb 0003:0461:4D81.0003: input,hidraw1: USB HID v1.11 Mouse [USB Optical Mouse] on usb-0000:02:00.0-2.2/input0
  • usb-devices
    T:  Bus=02 Lev=02 Prnt=03 Port=01 Cnt=02 Dev#=  7 Spd=1.5 MxCh= 0
    D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
    P:  Vendor=0461 ProdID=4d81 Rev=02.00
    S:  Product=USB Optical Mouse
    C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=98mA
    I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
  • ドライバ名:usbhid

Linux 3.5

  • マウスをつなぐとhid-genericになる
    [  421.464712] usb 2-2.2: new low-speed USB device number 9 using uhci_hcd
    [  421.784295] usb 2-2.2: New USB device found, idVendor=0461, idProduct=4d81
    [  421.784298] usb 2-2.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
    [  421.784300] usb 2-2.2: Product: USB Optical Mouse
    [  421.818707] input: USB Optical Mouse as /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.2/2-2.2:1.0/input/input6
    [  421.818880] hid-generic 0003:0461:4D81.0004: input,hidraw1: USB HID v1.11 Mouse [USB Optical Mouse] on usb-0000:02:00.0-2.2/input0
  • usb-devices
    T:  Bus=02 Lev=02 Prnt=03 Port=01 Cnt=02 Dev#=  9 Spd=1.5 MxCh= 0
    D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
    P:  Vendor=0461 ProdID=4d81 Rev=02.00
    S:  Product=USB Optical Mouse
    C:  #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=98mA
    I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid

関連