Created
October 22, 2018 03:11
-
-
Save kuon/c340182e5d552c1c5eb9f539e0cdc2ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:1d.0/0000:04:00.0/nvme/nvme0': | |
KERNEL=="nvme0" | |
SUBSYSTEM=="nvme" | |
DRIVER=="" | |
ATTR{cntlid}=="2" | |
ATTR{firmware_rev}=="CXY74D1Q" | |
ATTR{model}=="PM961 NVMe SAMSUNG 1024GB " | |
ATTR{serial}==" S33XNX0J501051" | |
ATTR{state}=="live" | |
ATTR{subsysnqn}=="nqn.2014.08.org.nvmexpress:144d144d S33XNX0J501051PM961 NVMe SAMSUNG 1024GB " | |
ATTR{transport}=="pcie" | |
looking at parent device '/devices/pci0000:00/0000:00:1d.0/0000:04:00.0': | |
KERNELS=="0000:04:00.0" | |
SUBSYSTEMS=="pci" | |
DRIVERS=="nvme" | |
ATTRS{broken_parity_status}=="0" | |
ATTRS{class}=="0x010802" | |
ATTRS{consistent_dma_mask_bits}=="64" | |
ATTRS{current_link_speed}=="8 GT/s" | |
ATTRS{current_link_width}=="4" | |
ATTRS{d3cold_allowed}=="1" | |
ATTRS{device}=="0xa804" | |
ATTRS{dma_mask_bits}=="64" | |
ATTRS{driver_override}=="(null)" | |
ATTRS{enable}=="1" | |
ATTRS{irq}=="16" | |
ATTRS{local_cpulist}=="0-7" | |
ATTRS{local_cpus}=="ff" | |
ATTRS{max_link_speed}=="8 GT/s" | |
ATTRS{max_link_width}=="4" | |
ATTRS{msi_bus}=="1" | |
ATTRS{numa_node}=="0" | |
ATTRS{revision}=="0x00" | |
ATTRS{subsystem_device}=="0xa801" | |
ATTRS{subsystem_vendor}=="0x144d" | |
ATTRS{vendor}=="0x144d" | |
looking at parent device '/devices/pci0000:00/0000:00:1d.0': | |
KERNELS=="0000:00:1d.0" | |
SUBSYSTEMS=="pci" | |
DRIVERS=="pcieport" | |
ATTRS{broken_parity_status}=="0" | |
ATTRS{class}=="0x060400" | |
ATTRS{consistent_dma_mask_bits}=="32" | |
ATTRS{current_link_speed}=="8 GT/s" | |
ATTRS{current_link_width}=="4" | |
ATTRS{d3cold_allowed}=="1" | |
ATTRS{device}=="0xa118" | |
ATTRS{dma_mask_bits}=="32" | |
ATTRS{driver_override}=="(null)" | |
ATTRS{enable}=="1" | |
ATTRS{irq}=="16" | |
ATTRS{local_cpulist}=="0-7" | |
ATTRS{local_cpus}=="ff" | |
ATTRS{max_link_speed}=="8 GT/s" | |
ATTRS{max_link_width}=="4" | |
ATTRS{msi_bus}=="1" | |
ATTRS{numa_node}=="-1" | |
ATTRS{revision}=="0xf1" | |
ATTRS{secondary_bus_number}=="4" | |
ATTRS{subordinate_bus_number}=="4" | |
ATTRS{subsystem_device}=="0x07be" | |
ATTRS{subsystem_vendor}=="0x1028" | |
ATTRS{vendor}=="0x8086" | |
looking at parent device '/devices/pci0000:00': | |
KERNELS=="pci0000:00" | |
SUBSYSTEMS=="" | |
DRIVERS=="" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment