[ mike in ~ ]$ udevinfo -a -p /sys/class/net/eth0
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/class/net/eth0':
KERNEL=="eth0"
SUBSYSTEM=="net"
DRIVER==""
ATTR{weight}=="64"
ATTR{tx_queue_len}=="1000"
ATTR{flags}=="0x1003"
ATTR{mtu}=="1500"
ATTR{operstate}=="down"
ATTR{dormant}=="0"
ATTR{carrier}=="0"
ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
ATTR{address}=="00:40:ca:8f:2f:f4"
ATTR{link_mode}=="0"
ATTR{type}=="1"
ATTR{features}=="0x20"
ATTR{ifindex}=="2"
ATTR{iflink}=="2"
ATTR{addr_len}=="6"
looking at parent device '/devices/pci0000:00/0000:00:14.0':
KERNELS=="0000:00:14.0"
SUBSYSTEMS=="pci"
DRIVERS=="forcedeth"
ATTRS{msi_bus}==""
ATTRS{broken_parity_status}=="0"
ATTRS{modalias}=="pci:v000010DEd00000269sv00001509sd00006006bc06sc80i00"
ATTRS{local_cpus}=="ff"
ATTRS{irq}=="19"
ATTRS{class}=="0x068000"
ATTRS{subsystem_device}=="0x6006"
ATTRS{subsystem_vendor}=="0x1509"
ATTRS{device}=="0x0269"
ATTRS{vendor}=="0x10de"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
[ mike in ~ ]$ udevinfo -a -p /sys/class/net/eth1_rename
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/class/net/eth1_rename':
KERNEL=="eth1_rename"
SUBSYSTEM=="net"
DRIVER==""
ATTR{weight}=="0"
ATTR{tx_queue_len}=="1000"
ATTR{flags}=="0x1003"
ATTR{mtu}=="576"
ATTR{operstate}=="unknown"
ATTR{dormant}=="0"
ATTR{carrier}=="1"
ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
ATTR{address}=="00:04:5a:47:1a:58"
ATTR{link_mode}=="0"
ATTR{type}=="1"
ATTR{features}=="0x0"
ATTR{ifindex}=="3"
ATTR{iflink}=="3"
ATTR{addr_len}=="6"
looking at parent device '/devices/pci0000:00/0000:00:10.0/0000:04:06.0':
KERNELS=="0000:04:06.0"
SUBSYSTEMS=="pci"
DRIVERS=="tulip"
ATTRS{msi_bus}==""
ATTRS{broken_parity_status}=="0"
ATTRS{modalias}=="pci:v00001317d00000985sv00001317sd00000570bc02sc00i00"
ATTRS{local_cpus}=="ff"
ATTRS{irq}=="21"
ATTRS{class}=="0x020000"
ATTRS{subsystem_device}=="0x0570"
ATTRS{subsystem_vendor}=="0x1317"
ATTRS{device}=="0x0985"
ATTRS{vendor}=="0x1317"
looking at parent device '/devices/pci0000:00/0000:00:10.0':
KERNELS=="0000:00:10.0"
SUBSYSTEMS=="pci"
DRIVERS==""
ATTRS{msi_bus}=="1"
ATTRS{broken_parity_status}=="0"
ATTRS{modalias}=="pci:v000010DEd0000026Fsv00000000sd00000000bc06sc04i01"
ATTRS{local_cpus}=="ff"
ATTRS{irq}=="0"
ATTRS{class}=="0x060401"
ATTRS{subsystem_device}=="0x0000"
ATTRS{subsystem_vendor}=="0x0000"
ATTRS{device}=="0x026f"
ATTRS{vendor}=="0x10de"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""