ryanpg@ruinaudio:/dev$ udevinfo -a -p /block/sda/sda3
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
device '/sys/block/sda/sda3' has major:minor 8:3
looking at class device '/sys/block/sda/sda3':
KERNEL=="sda3"
SUBSYSTEM=="block"
SYSFS{dev}=="8:3"
SYSFS{size}=="77010944"
SYSFS{start}=="1128448"
SYSFS{stat}==" 15 120 0 0"
follow the "device"-link to the physical device:
looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0/0030e002e0000bc8/0030e002e0000bc8-0/host1/target1:0:0/1:0:0:0':
BUS=="scsi"
ID=="1:0:0:0"
DRIVER=="sd"
SYSFS{device_blocked}=="0"
SYSFS{ieee1394_id}=="0030e002e0000bc8:0:0"
SYSFS{iocounterbits}=="32"
SYSFS{iodone_cnt}=="0x34"
SYSFS{ioerr_cnt}=="0x1"
SYSFS{iorequest_cnt}=="0x34"
SYSFS{model}=="0M9AT00 "
SYSFS{queue_depth}=="1"
SYSFS{queue_type}=="none"
SYSFS{rev}==" "
SYSFS{scsi_level}=="5"
SYSFS{state}=="running"
SYSFS{timeout}=="30"
SYSFS{type}=="14"
SYSFS{vendor}=="HTE72604"
looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0/0030e002e0000bc8/0030e002e0000bc8-0/host1/target1:0:0':
BUS==""
ID=="target1:0:0"
DRIVER=="unknown"
looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0/0030e002e0000bc8/0030e002e0000bc8-0/host1':
BUS==""
ID=="host1"
DRIVER=="unknown"
looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0/0030e002e0000bc8/0030e002e0000bc8-0':
BUS=="ieee1394"
ID=="0030e002e0000bc8-0"
DRIVER=="sbp2"
SYSFS{address}=="0x0000fffff0000830"
SYSFS{ignore_driver}=="0"
SYSFS{length}=="0"
SYSFS{model_id}=="0x000001"
SYSFS{model_name_kv}=="OXFORD IDE Device "
SYSFS{specifier_id}=="0x00609e"
SYSFS{version}=="0x010483"
with udev (077-0ubuntu3) permissions are set to:
brw-rw---- 1 root disk 8, 3 2005-12-08 09:48 sda3
ryanpg@ ruinaudio: /dev$ udevinfo -a -p /block/sda/sda3
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
device '/sys/block/ sda/sda3' has major:minor 8:3 sda/sda3' : ="block" dev}==" 8:3" size}== "77010944" start}= ="1128448"
looking at class device '/sys/block/
KERNEL=="sda3"
SUBSYSTEM=
SYSFS{
SYSFS{
SYSFS{
SYSFS{stat}==" 15 120 0 0"
follow the "device"-link to the physical device: pci0000: 00/0000: 00:1e.0/ 0000:02: 04.1/fw- host0/0030e002e 0000bc8/ 0030e002e0000bc 8-0/host1/ target1: 0:0/1:0: 0:0': device_ blocked} =="0" ieee1394_ id}=="0030e002e 0000bc8: 0:0" iocounterbits} =="32" iodone_ cnt}==" 0x34" ioerr_cnt} =="0x1" iorequest_ cnt}==" 0x34" model}= ="0M9AT00 " queue_depth} =="1" queue_type} =="none" scsi_level} =="5" state}= ="running" timeout} =="30" type}== "14" vendor} =="HTE72604"
looking at the device chain at
'/sys/devices/
BUS=="scsi"
ID=="1:0:0:0"
DRIVER=="sd"
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{rev}==" "
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
looking at the device chain at pci0000: 00/0000: 00:1e.0/ 0000:02: 04.1/fw- host0/0030e002e 0000bc8/ 0030e002e0000bc 8-0/host1/ target1: 0:0': ="target1: 0:0" ="unknown"
'/sys/devices/
BUS==""
ID=
DRIVER=
looking at the device chain at pci0000: 00/0000: 00:1e.0/ 0000:02: 04.1/fw- host0/0030e002e 0000bc8/ 0030e002e0000bc 8-0/host1' : ="unknown"
'/sys/devices/
BUS==""
ID=="host1"
DRIVER=
looking at the device chain at pci0000: 00/0000: 00:1e.0/ 0000:02: 04.1/fw- host0/0030e002e 0000bc8/ 0030e002e0000bc 8-0': ="0030e002e0000 bc8-0" address} =="0x0000fffff0 000830" ignore_ driver} =="0" length} =="0" model_id} =="0x000001" model_name_ kv}=="OXFORD IDE Device " specifier_ id}=="0x00609e" version} =="0x010483"
'/sys/devices/
BUS=="ieee1394"
ID=
DRIVER=="sbp2"
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
looking at the device chain at pci0000: 00/0000: 00:1e.0/ 0000:02: 04.1/fw- host0/0030e002e 0000bc8' : ="0030e002e0000 bc8" ="unknown" bus_options} =="IRMC_ 0_ CMC_0_ ISC_0_ BMC_0_ PMC_0_ GEN_0_ LSPD_2_ capabilities} =="0x0083c0" guid_vendor_ id}=="0x0030e0" guid}== "0x0030e002e000 0bc8" guid_vendor_ oui}==" OXFORD SEMICONDUCTOR LTD." nodeid} =="0xffc0" tlabels_ allocations} =="277" tlabels_ free}== "64" tlabels_ mask}== "0x000000000000 0000" vendor_ id}=="0x0030e0" vendor_ name_kv} =="Oxford Semiconductor Ltd. " vendor_ oui}==" OXFORD SEMICONDUCTOR LTD."
'/sys/devices/
BUS=="ieee1394"
ID=
DRIVER=
SYSFS{
MAX_REC_64_ MAX_ROM_0_ CYC_CLK_ACC_255_"
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
looking at the device chain at pci0000: 00/0000: 00:1e.0/ 0000:02: 04.1/fw- host0': ="unknown" in_bus_ reset}= ="0" is_busmgr} =="0" is_cycmst} =="1" is_irm} =="1" is_root} =="1" node_count} =="2" nodes_active} =="2" selfid_ count}= ="2"
'/sys/devices/
BUS=="ieee1394"
ID=="fw-host0"
DRIVER=
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
looking at the device chain at pci0000: 00/0000: 00:1e.0/ 0000:02: 04.1': ="0000: 02:04.1" ="ohci1394" class}= ="0x0c0010" device} =="0x8029" irq}==" 11" local_cpus} =="ff" modalias} =="pci: v0000104Cd00008 029sv00001028sd 00000149bc0Csc0 0i10" subsystem_ device} =="0x0149" subsystem_ vendor} =="0x1028" vendor} =="0x104c"
'/sys/devices/
BUS=="pci"
ID=
DRIVER=
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
looking at the device chain at '/sys/devices/ pci0000: 00/0000: 00:1e.0' : ="0000: 00:1e.0" ="unknown" class}= ="0x060400" device} =="0x244e" local_cpus} =="ff" modalias} =="pci: v00008086d00002 44Esv00000000sd 00000000bc06sc0 4i00" subsystem_ device} =="0x0000" subsystem_ vendor} =="0x0000" vendor} =="0x8086"
BUS=="pci"
ID=
DRIVER=
SYSFS{
SYSFS{
SYSFS{irq}=="0"
SYSFS{
SYSFS{
SYSFS{
SYSFS{
SYSFS{
looking at the device chain at '/sys/devices/ pci0000: 00': ="pci0000: 00" ="unknown"
BUS==""
ID=
DRIVER=