概述
udevadm info -a -p $(udevadm info -q path -n /dev/ttyUSB3)
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/platform/soc/10300000.xhci_0/usb1/1-1/1-1:1.4/ttyUSB3/tty/ttyUSB3':
KERNEL=="ttyUSB3"
SUBSYSTEM=="tty"
DRIVER==""
looking at parent device '/devices/platform/soc/10300000.xhci_0/usb1/1-1/1-1:1.4/ttyUSB3':
KERNELS=="ttyUSB3"
SUBSYSTEMS=="usb-serial"
DRIVERS=="option1"
ATTRS{port_number}=="0"
looking at parent device '/devices/platform/soc/10300000.xhci_0/usb1/1-1/1-1:1.4':
KERNELS=="1-1:1.4"
SUBSYSTEMS=="usb"
DRIVERS=="option"
ATTRS{bInterfaceProtocol}=="01"
ATTRS{bInterfaceNumber}=="04"
ATTRS{bInterfaceSubClass}=="03"
ATTRS{bInterfaceClass}=="ff"
....
最后
以上就是呆萌毛豆为你收集整理的udevadm的全部内容,希望文章能够帮你解决udevadm所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复