spacepaste

  1.  
  2. Udevadm info starts with the device specified by the devpath and then
  3. walks up the chain of parent devices. It prints for every device
  4. found, all possible attributes in the udev rules key format.
  5. A rule to match, can be composed by the attributes of the device
  6. and the attributes from one single parent device.
  7. looking at device '/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda':
  8. KERNEL=="sda"
  9. SUBSYSTEM=="block"
  10. DRIVER==""
  11. ATTR{ro}=="0"
  12. ATTR{size}=="488397168"
  13. ATTR{stat}==" 1619 0 29481 63068 14 2 84 447 0 6240 63515"
  14. ATTR{range}=="16"
  15. ATTR{discard_alignment}=="0"
  16. ATTR{events}==""
  17. ATTR{ext_range}=="256"
  18. ATTR{events_poll_msecs}=="-1"
  19. ATTR{alignment_offset}=="0"
  20. ATTR{badblocks}==""
  21. ATTR{inflight}==" 0 0"
  22. ATTR{removable}=="0"
  23. ATTR{capability}=="50"
  24. ATTR{events_async}==""
  25. looking at parent device '/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0':
  26. KERNELS=="0:0:0:0"
  27. SUBSYSTEMS=="scsi"
  28. DRIVERS=="sd"
  29. ATTRS{rev}=="CA1G"
  30. ATTRS{type}=="0"
  31. ATTRS{wwid}=="naa.5000cca66bf1d4e4"
  32. ATTRS{scsi_level}=="6"
  33. ATTRS{model}=="Hitachi HTS54502"
  34. ATTRS{state}=="running"
  35. ATTRS{unload_heads}=="0"
  36. ATTRS{queue_type}=="none"
  37. ATTRS{iodone_cnt}=="0x6de"
  38. ATTRS{iorequest_cnt}=="0x6de"
  39. ATTRS{queue_ramp_up_period}=="120000"
  40. ATTRS{device_busy}=="0"
  41. ATTRS{evt_capacity_change_reported}=="0"
  42. ATTRS{timeout}=="30"
  43. ATTRS{evt_media_change}=="0"
  44. ATTRS{ioerr_cnt}=="0x16"
  45. ATTRS{queue_depth}=="31"
  46. ATTRS{vendor}=="ATA "
  47. ATTRS{evt_soft_threshold_reached}=="0"
  48. ATTRS{device_blocked}=="0"
  49. ATTRS{evt_mode_parameter_change_reported}=="0"
  50. ATTRS{evt_lun_change_reported}=="0"
  51. ATTRS{evt_inquiry_change_reported}=="0"
  52. ATTRS{iocounterbits}=="32"
  53. ATTRS{inquiry}==""
  54. ATTRS{vpd_pg80}==""
  55. ATTRS{vpd_pg83}==""
  56. ATTRS{eh_timeout}=="10"
  57. looking at parent device '/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0':
  58. KERNELS=="target0:0:0"
  59. SUBSYSTEMS=="scsi"
  60. DRIVERS==""
  61. looking at parent device '/devices/pci0000:00/0000:00:1f.2/ata1/host0':
  62. KERNELS=="host0"
  63. SUBSYSTEMS=="scsi"
  64. DRIVERS==""
  65. looking at parent device '/devices/pci0000:00/0000:00:1f.2/ata1':
  66. KERNELS=="ata1"
  67. SUBSYSTEMS==""
  68. DRIVERS==""
  69. looking at parent device '/devices/pci0000:00/0000:00:1f.2':
  70. KERNELS=="0000:00:1f.2"
  71. SUBSYSTEMS=="pci"
  72. DRIVERS=="ahci"
  73. ATTRS{irq}=="26"
  74. ATTRS{subsystem_vendor}=="0x1028"
  75. ATTRS{broken_parity_status}=="0"
  76. ATTRS{class}=="0x010400"
  77. ATTRS{driver_override}=="(null)"
  78. ATTRS{consistent_dma_mask_bits}=="64"
  79. ATTRS{dma_mask_bits}=="64"
  80. ATTRS{local_cpus}=="ffffffff"
  81. ATTRS{device}=="0x2822"
  82. ATTRS{enable}=="1"
  83. ATTRS{msi_bus}=="1"
  84. ATTRS{local_cpulist}=="0-31"
  85. ATTRS{vendor}=="0x8086"
  86. ATTRS{subsystem_device}=="0x0293"
  87. ATTRS{d3cold_allowed}=="1"
  88. looking at parent device '/devices/pci0000:00':
  89. KERNELS=="pci0000:00"
  90. SUBSYSTEMS==""
  91. DRIVERS==""
  92.