Advertisement
Guest User

sada

a guest
Sep 3rd, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. $ udevadm info -a -p /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.3/input/input29
  2.  
  3. Udevadm info starts with the device specified by the devpath and then
  4. walks up the chain of parent devices. It prints for every device
  5. found, all possible attributes in the udev rules key format.
  6. A rule to match, can be composed by the attributes of the device
  7. and the attributes from one single parent device.
  8.  
  9. looking at device '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.3/input/input29':
  10. KERNEL=="input29"
  11. SUBSYSTEM=="input"
  12. DRIVER==""
  13. ATTR{name}=="Hewlett-Packard HP Premium Digital Headset"
  14. ATTR{phys}=="usb-0000:00:1d.0-1.2/input3"
  15. ATTR{uniq}==""
  16. ATTR{properties}=="0"
  17.  
  18. looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.3':
  19. KERNELS=="2-1.2:1.3"
  20. SUBSYSTEMS=="usb"
  21. DRIVERS=="usbhid"
  22. ATTRS{bInterfaceNumber}=="03"
  23. ATTRS{bAlternateSetting}==" 0"
  24. ATTRS{bNumEndpoints}=="01"
  25. ATTRS{bInterfaceClass}=="03"
  26. ATTRS{bInterfaceSubClass}=="00"
  27. ATTRS{bInterfaceProtocol}=="00"
  28. ATTRS{supports_autosuspend}=="1"
  29.  
  30. looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2':
  31. KERNELS=="2-1.2"
  32. SUBSYSTEMS=="usb"
  33. DRIVERS=="usb"
  34. ATTRS{configuration}==""
  35. ATTRS{bNumInterfaces}==" 4"
  36. ATTRS{bConfigurationValue}=="1"
  37. ATTRS{bmAttributes}=="80"
  38. ATTRS{bMaxPower}=="100mA"
  39. ATTRS{urbnum}=="5772"
  40. ATTRS{idVendor}=="03f0"
  41. ATTRS{idProduct}=="a007"
  42. ATTRS{bcdDevice}=="0100"
  43. ATTRS{bDeviceClass}=="00"
  44. ATTRS{bDeviceSubClass}=="00"
  45. ATTRS{bDeviceProtocol}=="00"
  46. ATTRS{bNumConfigurations}=="1"
  47. ATTRS{bMaxPacketSize0}=="8"
  48. ATTRS{speed}=="12"
  49. ATTRS{busnum}=="2"
  50. ATTRS{devnum}=="21"
  51. ATTRS{devpath}=="1.2"
  52. ATTRS{version}==" 1.10"
  53. ATTRS{maxchild}=="0"
  54. ATTRS{quirks}=="0x0"
  55. ATTRS{avoid_reset_quirk}=="0"
  56. ATTRS{authorized}=="1"
  57. ATTRS{manufacturer}=="Hewlett-Packard"
  58. ATTRS{product}=="HP Premium Digital Headset"
  59.  
  60. looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb2/2-1':
  61. KERNELS=="2-1"
  62. SUBSYSTEMS=="usb"
  63. DRIVERS=="usb"
  64. ATTRS{configuration}==""
  65. ATTRS{bNumInterfaces}==" 1"
  66. ATTRS{bConfigurationValue}=="1"
  67. ATTRS{bmAttributes}=="e0"
  68. ATTRS{bMaxPower}==" 0mA"
  69. ATTRS{urbnum}=="472"
  70. ATTRS{idVendor}=="8087"
  71. ATTRS{idProduct}=="0024"
  72. ATTRS{bcdDevice}=="0000"
  73. ATTRS{bDeviceClass}=="09"
  74. ATTRS{bDeviceSubClass}=="00"
  75. ATTRS{bDeviceProtocol}=="01"
  76. ATTRS{bNumConfigurations}=="1"
  77. ATTRS{bMaxPacketSize0}=="64"
  78. ATTRS{speed}=="480"
  79. ATTRS{busnum}=="2"
  80. ATTRS{devnum}=="2"
  81. ATTRS{devpath}=="1"
  82. ATTRS{version}==" 2.00"
  83. ATTRS{maxchild}=="6"
  84. ATTRS{quirks}=="0x0"
  85. ATTRS{avoid_reset_quirk}=="0"
  86. ATTRS{authorized}=="1"
  87.  
  88. looking at parent device '/devices/pci0000:00/0000:00:1d.0/usb2':
  89. KERNELS=="usb2"
  90. SUBSYSTEMS=="usb"
  91. DRIVERS=="usb"
  92. ATTRS{configuration}==""
  93. ATTRS{bNumInterfaces}==" 1"
  94. ATTRS{bConfigurationValue}=="1"
  95. ATTRS{bmAttributes}=="e0"
  96. ATTRS{bMaxPower}==" 0mA"
  97. ATTRS{urbnum}=="62"
  98. ATTRS{idVendor}=="1d6b"
  99. ATTRS{idProduct}=="0002"
  100. ATTRS{bcdDevice}=="0302"
  101. ATTRS{bDeviceClass}=="09"
  102. ATTRS{bDeviceSubClass}=="00"
  103. ATTRS{bDeviceProtocol}=="00"
  104. ATTRS{bNumConfigurations}=="1"
  105. ATTRS{bMaxPacketSize0}=="64"
  106. ATTRS{speed}=="480"
  107. ATTRS{busnum}=="2"
  108. ATTRS{devnum}=="1"
  109. ATTRS{devpath}=="0"
  110. ATTRS{version}==" 2.00"
  111. ATTRS{maxchild}=="2"
  112. ATTRS{quirks}=="0x0"
  113. ATTRS{avoid_reset_quirk}=="0"
  114. ATTRS{authorized}=="1"
  115. ATTRS{manufacturer}=="Linux 3.2.0-23-generic ehci_hcd"
  116. ATTRS{product}=="EHCI Host Controller"
  117. ATTRS{serial}=="0000:00:1d.0"
  118. ATTRS{authorized_default}=="1"
  119.  
  120. looking at parent device '/devices/pci0000:00/0000:00:1d.0':
  121. KERNELS=="0000:00:1d.0"
  122. SUBSYSTEMS=="pci"
  123. DRIVERS=="ehci_hcd"
  124. ATTRS{vendor}=="0x8086"
  125. ATTRS{device}=="0x1c26"
  126. ATTRS{subsystem_vendor}=="0x1043"
  127. ATTRS{subsystem_device}=="0x1237"
  128. ATTRS{class}=="0x0c0320"
  129. ATTRS{irq}=="23"
  130. ATTRS{local_cpus}=="00000000,00000000,00000000,00000000,00000000,00000000,00000000,0000000f"
  131. ATTRS{local_cpulist}=="0-3"
  132. ATTRS{numa_node}=="-1"
  133. ATTRS{dma_mask_bits}=="32"
  134. ATTRS{consistent_dma_mask_bits}=="32"
  135. ATTRS{broken_parity_status}=="0"
  136. ATTRS{msi_bus}==""
  137. ATTRS{companion}==""
  138. ATTRS{uframe_periodic_max}=="100"
  139.  
  140. looking at parent device '/devices/pci0000:00':
  141. KERNELS=="pci0000:00"
  142. SUBSYSTEMS==""
  143. DRIVERS==""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement