$ uame -a Linux ubuntu 4.8.0-22-generic #24-Ubuntu SMP Sat Oct 8 09:15:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux $ udevadm info /dev/input/mouse3 P: /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-17/i2c-CRQ1001:00/0018:0488:D020.0006/input/input17/mouse3 N: input/mouse3 S: input/by-path/pci-0000:00:15.0-platform-i2c_designware.0-mouse E: DEVLINKS=/dev/input/by-path/pci-0000:00:15.0-platform-i2c_designware.0-mouse E: DEVNAME=/dev/input/mouse3 E: DEVPATH=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-17/i2c-CRQ1001:00/0018:0488:D020.0006/input/input17/mouse3 E: ID_INPUT=1 E: ID_INPUT_MOUSE=1 E: ID_PATH=pci-0000:00:15.0-platform-i2c_designware.0 E: ID_PATH_TAG=pci-0000_00_15_0-platform-i2c_designware_0 E: ID_SERIAL=noserial E: MAJOR=13 E: MINOR=35 E: SUBSYSTEM=input E: USEC_INITIALIZED=15483465 $ udevadm info -a -p $(udevadm info -q path -n /dev/input/mouse3) 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:15.0/i2c_designware.0/i2c-17/i2c-CRQ1001:00/0018:0488:D020.0006/input/input17/mouse3': KERNEL=="mouse3" SUBSYSTEM=="input" DRIVER=="" looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-17/i2c-CRQ1001:00/0018:0488:D020.0006/input/input17': KERNELS=="input17" SUBSYSTEMS=="input" DRIVERS=="" ATTRS{name}=="CRQ1001:00 0488:D020" ATTRS{phys}=="i2c-CRQ1001:00" ATTRS{properties}=="0" ATTRS{uniq}=="" looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-17/i2c-CRQ1001:00/0018:0488:D020.0006': KERNELS=="0018:0488:D020.0006" SUBSYSTEMS=="hid" DRIVERS=="hid-generic" ATTRS{country}=="00" looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-17/i2c-CRQ1001:00': KERNELS=="i2c-CRQ1001:00" SUBSYSTEMS=="i2c" DRIVERS=="i2c_hid" ATTRS{name}=="CRQ1001:00" looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-17': KERNELS=="i2c-17" SUBSYSTEMS=="i2c" DRIVERS=="" ATTRS{name}=="Synopsys DesignWare I2C adapter" looking at parent device '/devices/pci0000:00/0000:00:15.0/i2c_designware.0': KERNELS=="i2c_designware.0" SUBSYSTEMS=="platform" DRIVERS=="i2c_designware" ATTRS{driver_override}=="(null)" looking at parent device '/devices/pci0000:00/0000:00:15.0': KERNELS=="0000:00:15.0" SUBSYSTEMS=="pci" DRIVERS=="intel-lpss" ATTRS{broken_parity_status}=="0" ATTRS{class}=="0x118000" ATTRS{consistent_dma_mask_bits}=="32" ATTRS{d3cold_allowed}=="1" ATTRS{device}=="0xa160" 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{msi_bus}=="1" ATTRS{numa_node}=="-1" ATTRS{subsystem_device}=="0x6750" ATTRS{subsystem_vendor}=="0x1a58" ATTRS{vendor}=="0x8086" looking at parent device '/devices/pci0000:00': KERNELS=="pci0000:00" SUBSYSTEMS=="" DRIVERS==""