udevadm info
von Taomon- SNIPPET_TEXT:
-
- root@Taomon:/home/alex# udevadm info --query=all -p /sys/class/net/enp0s25 --attribute-walk
- Udevadm info 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 '/devices/pci0000:00/0000:00:19.0/net/enp0s25':
- KERNEL=="enp0s25"
- SUBSYSTEM=="net"
- DRIVER==""
- ATTR{addr_assign_type}=="0"
- ATTR{addr_len}=="6"
- ATTR{address}=="00:21:cc:ce:85:21"
- ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
- ATTR{carrier}=="0"
- ATTR{carrier_changes}=="1"
- ATTR{dev_id}=="0x0"
- ATTR{dev_port}=="0"
- ATTR{dormant}=="0"
- ATTR{duplex}=="unknown"
- ATTR{flags}=="0x1003"
- ATTR{gro_flush_timeout}=="0"
- ATTR{ifalias}==""
- ATTR{ifindex}=="2"
- ATTR{iflink}=="2"
- ATTR{link_mode}=="0"
- ATTR{mtu}=="1500"
- ATTR{name_assign_type}=="4"
- ATTR{netdev_group}=="0"
- ATTR{operstate}=="down"
- ATTR{proto_down}=="0"
- ATTR{speed}=="-1"
- ATTR{tx_queue_len}=="1000"
- ATTR{type}=="1"
- looking at parent device '/devices/pci0000:00/0000:00:19.0':
- KERNELS=="0000:00:19.0"
- SUBSYSTEMS=="pci"
- DRIVERS=="e1000e"
- ATTRS{broken_parity_status}=="0"
- ATTRS{class}=="0x020000"
- ATTRS{consistent_dma_mask_bits}=="64"
- ATTRS{d3cold_allowed}=="1"
- ATTRS{device}=="0x1502"
- ATTRS{dma_mask_bits}=="64"
- ATTRS{driver_override}=="(null)"
- ATTRS{enable}=="1"
- ATTRS{irq}=="24"
- ATTRS{local_cpulist}=="0-3"
- ATTRS{local_cpus}=="0f"
- ATTRS{msi_bus}=="1"
- ATTRS{numa_node}=="-1"
- ATTRS{subsystem_device}=="0x21f3"
- ATTRS{subsystem_vendor}=="0x17aa"
- ATTRS{vendor}=="0x8086"
- looking at parent device '/devices/pci0000:00':
- KERNELS=="pci0000:00"
- SUBSYSTEMS==""
- DRIVERS==""
- root@Taomon:/home/alex#
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN