Advertisement
seamusdemora

udevadm info --attribute-walk

Jun 6th, 2024 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | Software | 0 0
  1. $ udevadm info --attribute-walk --path=/sys/bus/i2c/devices/0-0044/hwmon/hwmon3
  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/platform/soc/3f205000.i2c/i2c-0/0-0044/hwmon/hwmon3':
  10. KERNEL=="hwmon3"
  11. SUBSYSTEM=="hwmon"
  12. DRIVER==""
  13. ATTR{heater_enable}=="0"
  14. ATTR{humidity1_alarm}=="0"
  15. ATTR{humidity1_input}=="61366"
  16. ATTR{humidity1_max}=="79687"
  17. ATTR{humidity1_max_hyst}=="78125"
  18. ATTR{humidity1_min}=="20312"
  19. ATTR{humidity1_min_hyst}=="21875"
  20. ATTR{name}=="sht3x"
  21. ATTR{power/control}=="auto"
  22. ATTR{power/runtime_active_time}=="0"
  23. ATTR{power/runtime_status}=="unsupported"
  24. ATTR{power/runtime_suspended_time}=="0"
  25. ATTR{repeatability}=="2"
  26. ATTR{temp1_alarm}=="0"
  27. ATTR{temp1_input}=="23709"
  28. ATTR{temp1_max}=="59931"
  29. ATTR{temp1_max_hyst}=="57880"
  30. ATTR{temp1_min}=="-10137"
  31. ATTR{temp1_min_hyst}=="-9112"
  32. ATTR{update_interval}=="0"
  33.  
  34. looking at parent device '/devices/platform/soc/3f205000.i2c/i2c-0/0-0044':
  35. KERNELS=="0-0044"
  36. SUBSYSTEMS=="i2c"
  37. DRIVERS=="sht3x"
  38. ATTRS{name}=="sht3x"
  39. ATTRS{power/control}=="auto"
  40. ATTRS{power/runtime_active_time}=="0"
  41. ATTRS{power/runtime_status}=="unsupported"
  42. ATTRS{power/runtime_suspended_time}=="0"
  43.  
  44. looking at parent device '/devices/platform/soc/3f205000.i2c/i2c-0':
  45. KERNELS=="i2c-0"
  46. SUBSYSTEMS=="i2c"
  47. DRIVERS==""
  48. ATTRS{delete_device}=="(not readable)"
  49. ATTRS{name}=="bcm2835 (i2c@7e205000)"
  50. ATTRS{new_device}=="(not readable)"
  51.  
  52. looking at parent device '/devices/platform/soc/3f205000.i2c':
  53. KERNELS=="3f205000.i2c"
  54. SUBSYSTEMS=="platform"
  55. DRIVERS=="i2c-bcm2835"
  56. ATTRS{driver_override}=="(null)"
  57. ATTRS{power/control}=="auto"
  58. ATTRS{power/runtime_active_time}=="0"
  59. ATTRS{power/runtime_status}=="unsupported"
  60. ATTRS{power/runtime_suspended_time}=="0"
  61.  
  62. looking at parent device '/devices/platform/soc':
  63. KERNELS=="soc"
  64. SUBSYSTEMS=="platform"
  65. DRIVERS=="simple-pm-bus"
  66. ATTRS{driver_override}=="(null)"
  67. ATTRS{power/control}=="auto"
  68. ATTRS{power/runtime_active_time}=="0"
  69. ATTRS{power/runtime_status}=="unsupported"
  70. ATTRS{power/runtime_suspended_time}=="0"
  71.  
  72. looking at parent device '/devices/platform':
  73. KERNELS=="platform"
  74. SUBSYSTEMS==""
  75. DRIVERS==""
  76. ATTRS{power/control}=="auto"
  77. ATTRS{power/runtime_active_time}=="0"
  78. ATTRS{power/runtime_status}=="unsupported"
  79. ATTRS{power/runtime_suspended_time}=="0"
  80.  
  81. ===============================================
  82. $ udevadm info --attribute-walk --path=/sys/class/hwmon/hwmon2
  83.  
  84. Udevadm info starts with the device specified by the devpath and then
  85. walks up the chain of parent devices. It prints for every device
  86. found, all possible attributes in the udev rules key format.
  87. A rule to match, can be composed by the attributes of the device
  88. and the attributes from one single parent device.
  89.  
  90. looking at device '/devices/platform/soc/3f205000.i2c/i2c-0/0-0044/hwmon/hwmon2':
  91. KERNEL=="hwmon2"
  92. SUBSYSTEM=="hwmon"
  93. DRIVER==""
  94. ATTR{heater_enable}=="0"
  95. ATTR{humidity1_alarm}=="0"
  96. ATTR{humidity1_input}=="61531"
  97. ATTR{humidity1_max}=="79687"
  98. ATTR{humidity1_max_hyst}=="78125"
  99. ATTR{humidity1_min}=="20312"
  100. ATTR{humidity1_min_hyst}=="21875"
  101. ATTR{name}=="sht3x"
  102. ATTR{power/control}=="auto"
  103. ATTR{power/runtime_active_time}=="0"
  104. ATTR{power/runtime_status}=="unsupported"
  105. ATTR{power/runtime_suspended_time}=="0"
  106. ATTR{repeatability}=="2"
  107. ATTR{temp1_alarm}=="0"
  108. ATTR{temp1_input}=="23540"
  109. ATTR{temp1_max}=="59931"
  110. ATTR{temp1_max_hyst}=="57880"
  111. ATTR{temp1_min}=="-10137"
  112. ATTR{temp1_min_hyst}=="-9112"
  113. ATTR{update_interval}=="0"
  114.  
  115. looking at parent device '/devices/platform/soc/3f205000.i2c/i2c-0/0-0044':
  116. KERNELS=="0-0044"
  117. SUBSYSTEMS=="i2c"
  118. DRIVERS=="sht3x"
  119. ATTRS{name}=="sht3x"
  120. ATTRS{power/control}=="auto"
  121. ATTRS{power/runtime_active_time}=="0"
  122. ATTRS{power/runtime_status}=="unsupported"
  123. ATTRS{power/runtime_suspended_time}=="0"
  124.  
  125. looking at parent device '/devices/platform/soc/3f205000.i2c/i2c-0':
  126. KERNELS=="i2c-0"
  127. SUBSYSTEMS=="i2c"
  128. DRIVERS==""
  129. ATTRS{delete_device}=="(not readable)"
  130. ATTRS{name}=="bcm2835 (i2c@7e205000)"
  131. ATTRS{new_device}=="(not readable)"
  132.  
  133. looking at parent device '/devices/platform/soc/3f205000.i2c':
  134. KERNELS=="3f205000.i2c"
  135. SUBSYSTEMS=="platform"
  136. DRIVERS=="i2c-bcm2835"
  137. ATTRS{driver_override}=="(null)"
  138. ATTRS{power/control}=="auto"
  139. ATTRS{power/runtime_active_time}=="0"
  140. ATTRS{power/runtime_status}=="unsupported"
  141. ATTRS{power/runtime_suspended_time}=="0"
  142.  
  143. looking at parent device '/devices/platform/soc':
  144. KERNELS=="soc"
  145. SUBSYSTEMS=="platform"
  146. DRIVERS=="simple-pm-bus"
  147. ATTRS{driver_override}=="(null)"
  148. ATTRS{power/control}=="auto"
  149. ATTRS{power/runtime_active_time}=="0"
  150. ATTRS{power/runtime_status}=="unsupported"
  151. ATTRS{power/runtime_suspended_time}=="0"
  152.  
  153. looking at parent device '/devices/platform':
  154. KERNELS=="platform"
  155. SUBSYSTEMS==""
  156. DRIVERS==""
  157. ATTRS{power/control}=="auto"
  158. ATTRS{power/runtime_active_time}=="0"
  159. ATTRS{power/runtime_status}=="unsupported"
  160. ATTRS{power/runtime_suspended_time}=="0"
  161.  
Tags: udev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement