NoPaste

udevadm info

von Taomon

SNIPPET_TEXT:
  1. root@Taomon:/home/alex# udevadm info --query=all -p /sys/class/net/enp0s25 --attribute-walk
  2.  
  3. Udevadm info starts with the device specified by the devpath and then
  4. walks up the chain of parent devices. It prints for every device
  5. found, all possible attributes in the udev rules key format.
  6. A rule to match, can be composed by the attributes of the device
  7. and the attributes from one single parent device.
  8.  
  9.   looking at device '/devices/pci0000:00/0000:00:19.0/net/enp0s25':
  10.     KERNEL=="enp0s25"
  11.     SUBSYSTEM=="net"
  12.     DRIVER==""
  13.     ATTR{addr_assign_type}=="0"
  14.     ATTR{addr_len}=="6"
  15.     ATTR{address}=="00:21:cc:ce:85:21"
  16.     ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
  17.     ATTR{carrier}=="0"
  18.     ATTR{carrier_changes}=="1"
  19.     ATTR{dev_id}=="0x0"
  20.     ATTR{dev_port}=="0"
  21.     ATTR{dormant}=="0"
  22.     ATTR{duplex}=="unknown"
  23.     ATTR{flags}=="0x1003"
  24.     ATTR{gro_flush_timeout}=="0"
  25.     ATTR{ifalias}==""
  26.     ATTR{ifindex}=="2"
  27.     ATTR{iflink}=="2"
  28.     ATTR{link_mode}=="0"
  29.     ATTR{mtu}=="1500"
  30.     ATTR{name_assign_type}=="4"
  31.     ATTR{netdev_group}=="0"
  32.     ATTR{operstate}=="down"
  33.     ATTR{proto_down}=="0"
  34.     ATTR{speed}=="-1"
  35.     ATTR{tx_queue_len}=="1000"
  36.     ATTR{type}=="1"
  37.  
  38.   looking at parent device '/devices/pci0000:00/0000:00:19.0':
  39.     KERNELS=="0000:00:19.0"
  40.     SUBSYSTEMS=="pci"
  41.     DRIVERS=="e1000e"
  42.     ATTRS{broken_parity_status}=="0"
  43.     ATTRS{class}=="0x020000"
  44.     ATTRS{consistent_dma_mask_bits}=="64"
  45.     ATTRS{d3cold_allowed}=="1"
  46.     ATTRS{device}=="0x1502"
  47.     ATTRS{dma_mask_bits}=="64"
  48.     ATTRS{driver_override}=="(null)"
  49.     ATTRS{enable}=="1"
  50.     ATTRS{irq}=="24"
  51.     ATTRS{local_cpulist}=="0-3"
  52.     ATTRS{local_cpus}=="0f"
  53.     ATTRS{msi_bus}=="1"
  54.     ATTRS{numa_node}=="-1"
  55.     ATTRS{subsystem_device}=="0x21f3"
  56.     ATTRS{subsystem_vendor}=="0x17aa"
  57.     ATTRS{vendor}=="0x8086"
  58.  
  59.   looking at parent device '/devices/pci0000:00':
  60.     KERNELS=="pci0000:00"
  61.     SUBSYSTEMS==""
  62.     DRIVERS==""
  63.  
  64. root@Taomon:/home/alex#

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN