Want more features on Pastebin? Sign Up, it's FREE!
Guest

debian udevadm

By: synthnassizer on Jul 30th, 2012  |  syntax: None  |  size: 4.80 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Udevadm info starts with the device specified by the devpath and then
  2. walks up the chain of parent devices. It prints for every device
  3. found, all possible attributes in the udev rules key format.
  4. A rule to match, can be composed by the attributes of the device
  5. and the attributes from one single parent device.
  6.  
  7.   looking at device '/devices/pci0000:00/0000:00:10.3/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0/block/sdb':
  8.     KERNEL=="sdb"
  9.     SUBSYSTEM=="block"
  10.     DRIVER==""
  11.     ATTR{range}=="16"
  12.     ATTR{ext_range}=="256"
  13.     ATTR{removable}=="0"
  14.     ATTR{ro}=="0"
  15.     ATTR{size}=="156301488"
  16.     ATTR{alignment_offset}=="0"
  17.     ATTR{capability}=="52"
  18.     ATTR{stat}=="    1844       58    40690    12984      448       62    13058    48144        0    12920    61128"
  19.     ATTR{inflight}=="       0        0"
  20.  
  21.   looking at parent device '/devices/pci0000:00/0000:00:10.3/usb1/1-1/1-1:1.0/host5/target5:0:0/5:0:0:0':
  22.     KERNELS=="5:0:0:0"
  23.     SUBSYSTEMS=="scsi"
  24.     DRIVERS=="sd"
  25.     ATTRS{device_blocked}=="0"
  26.     ATTRS{type}=="0"
  27.     ATTRS{scsi_level}=="3"
  28.     ATTRS{vendor}=="FUJITSU "
  29.     ATTRS{model}=="MHT2080AT       "
  30.     ATTRS{rev}=="    "
  31.     ATTRS{state}=="running"
  32.     ATTRS{timeout}=="30"
  33.     ATTRS{iocounterbits}=="32"
  34.     ATTRS{iorequest_cnt}=="0x905"
  35.     ATTRS{iodone_cnt}=="0x905"
  36.     ATTRS{ioerr_cnt}=="0x0"
  37.     ATTRS{modalias}=="scsi:t-0x00"
  38.     ATTRS{evt_media_change}=="0"
  39.     ATTRS{queue_depth}=="1"
  40.     ATTRS{queue_type}=="none"
  41.     ATTRS{max_sectors}=="240"
  42.  
  43.   looking at parent device '/devices/pci0000:00/0000:00:10.3/usb1/1-1/1-1:1.0/host5/target5:0:0':
  44.     KERNELS=="target5:0:0"
  45.     SUBSYSTEMS=="scsi"
  46.     DRIVERS==""
  47.  
  48.   looking at parent device '/devices/pci0000:00/0000:00:10.3/usb1/1-1/1-1:1.0/host5':
  49.     KERNELS=="host5"
  50.     SUBSYSTEMS=="scsi"
  51.     DRIVERS==""
  52.  
  53.   looking at parent device '/devices/pci0000:00/0000:00:10.3/usb1/1-1/1-1:1.0':
  54.     KERNELS=="1-1:1.0"
  55.     SUBSYSTEMS=="usb"
  56.     DRIVERS=="usb-storage"
  57.     ATTRS{bInterfaceNumber}=="00"
  58.     ATTRS{bAlternateSetting}==" 0"
  59.     ATTRS{bNumEndpoints}=="02"
  60.     ATTRS{bInterfaceClass}=="08"
  61.     ATTRS{bInterfaceSubClass}=="06"
  62.     ATTRS{bInterfaceProtocol}=="50"
  63.     ATTRS{modalias}=="usb:v152Dp2338d0100dc00dsc00dp00ic08isc06ip50"
  64.     ATTRS{supports_autosuspend}=="0"
  65.     ATTRS{interface}=="MSC Bulk-Only Transfer"
  66.  
  67.   looking at parent device '/devices/pci0000:00/0000:00:10.3/usb1/1-1':
  68.     KERNELS=="1-1"
  69.     SUBSYSTEMS=="usb"
  70.     DRIVERS=="usb"
  71.     ATTRS{configuration}=="USB Mass Storage"
  72.     ATTRS{bNumInterfaces}==" 1"
  73.     ATTRS{bConfigurationValue}=="1"
  74.     ATTRS{bmAttributes}=="c0"
  75.     ATTRS{bMaxPower}=="  2mA"
  76.     ATTRS{urbnum}=="9049"
  77.     ATTRS{idVendor}=="152d"
  78.     ATTRS{idProduct}=="2338"
  79.     ATTRS{bcdDevice}=="0100"
  80.     ATTRS{bDeviceClass}=="00"
  81.     ATTRS{bDeviceSubClass}=="00"
  82.     ATTRS{bDeviceProtocol}=="00"
  83.     ATTRS{bNumConfigurations}=="1"
  84.     ATTRS{bMaxPacketSize0}=="64"
  85.     ATTRS{speed}=="480"
  86.     ATTRS{busnum}=="1"
  87.     ATTRS{devnum}=="3"
  88.     ATTRS{version}==" 2.00"
  89.     ATTRS{maxchild}=="0"
  90.     ATTRS{quirks}=="0x0"
  91.     ATTRS{authorized}=="1"
  92.     ATTRS{manufacturer}=="JMicron"
  93.     ATTRS{product}=="USB to ATA/ATAPI bridge"
  94.     ATTRS{serial}=="43527242080A"
  95.  
  96.   looking at parent device '/devices/pci0000:00/0000:00:10.3/usb1':
  97.     KERNELS=="usb1"
  98.     SUBSYSTEMS=="usb"
  99.     DRIVERS=="usb"
  100.     ATTRS{configuration}==""
  101.     ATTRS{bNumInterfaces}==" 1"
  102.     ATTRS{bConfigurationValue}=="1"
  103.     ATTRS{bmAttributes}=="e0"
  104.     ATTRS{bMaxPower}=="  0mA"
  105.     ATTRS{urbnum}=="62"
  106.     ATTRS{idVendor}=="1d6b"
  107.     ATTRS{idProduct}=="0002"
  108.     ATTRS{bcdDevice}=="0206"
  109.     ATTRS{bDeviceClass}=="09"
  110.     ATTRS{bDeviceSubClass}=="00"
  111.     ATTRS{bDeviceProtocol}=="00"
  112.     ATTRS{bNumConfigurations}=="1"
  113.     ATTRS{bMaxPacketSize0}=="64"
  114.     ATTRS{speed}=="480"
  115.     ATTRS{busnum}=="1"
  116.     ATTRS{devnum}=="1"
  117.     ATTRS{version}==" 2.00"
  118.     ATTRS{maxchild}=="6"
  119.     ATTRS{quirks}=="0x0"
  120.     ATTRS{authorized}=="1"
  121.     ATTRS{manufacturer}=="Linux 2.6.32-5-686 ehci_hcd"
  122.     ATTRS{product}=="EHCI Host Controller"
  123.     ATTRS{serial}=="0000:00:10.3"
  124.     ATTRS{authorized_default}=="1"
  125.  
  126.   looking at parent device '/devices/pci0000:00/0000:00:10.3':
  127.     KERNELS=="0000:00:10.3"
  128.     SUBSYSTEMS=="pci"
  129.     DRIVERS=="ehci_hcd"
  130.     ATTRS{vendor}=="0x1106"
  131.     ATTRS{device}=="0x3104"
  132.     ATTRS{subsystem_vendor}=="0x1458"
  133.     ATTRS{subsystem_device}=="0x5004"
  134.     ATTRS{class}=="0x0c0320"
  135.     ATTRS{irq}=="21"
  136.     ATTRS{local_cpus}=="ffffffff"
  137.     ATTRS{local_cpulist}=="0-31"
  138.     ATTRS{modalias}=="pci:v00001106d00003104sv00001458sd00005004bc0Csc03i20"
  139.     ATTRS{enable}=="1"
  140.     ATTRS{broken_parity_status}=="0"
  141.     ATTRS{msi_bus}==""
  142.     ATTRS{companion}==""
  143.  
  144.   looking at parent device '/devices/pci0000:00':
  145.     KERNELS=="pci0000:00"
  146.     SUBSYSTEMS==""
  147.     DRIVERS==""
clone this paste RAW Paste Data