udev(八):实战:使用udevadm修…
来源:互联网 发布:超市收银机和软件 编辑:程序博客网 时间:2024/06/02 00:28
大
U devadm info startswith the device specified by the devpath andthen
walks up the chain of parent devices. Itprints for every device
found, all possible attributes in the udevrules key format.
A rule to match, can be composed by theattributes of the device
and the attributes from one single parentdevice.
looking at device'/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host5/target5:0:0/5:0:0:0/block/sdc':
KERNEL=="sdc"
SUBSYSTEM=="block"
DRIVER==""
ATTR{range}=="16"
ATTR{ext_range}=="256"
ATTR{removable}=="1"
ATTR{ro}=="0"
ATTR{size}=="7830528"
ATTR{alignment_offset}=="0"
ATTR{capability}=="53"
ATTR{stat}==" 48 966 1714 344 0 0 0 0 0 328344"
looking at parent device'/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host5/target5:0:0/5:0:0:0':
KERNELS=="5:0:0:0"
SUBSYSTEMS=="scsi"
DRIVERS=="sd"
ATTRS{device_blocked}=="0"
…..........................
Udevadm info starts with the devicespecified by the devpath and then
walks up the chain of parent devices. Itprints for every device
found, all possible attributes in the udevrules key format.
A rule to match, can be composed by theattributes of the device
and the attributes from one single parentdevice.
looking at device'/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host5/target5:0:0/5:0:0:0/block/sdc/sdc4':
KERNEL=="sdc4"
SUBSYSTEM=="block"
DRIVER==""
ATTR{partition}=="4"
ATTR{start}=="63"
ATTR{size}=="7830465"
ATTR{alignment_offset}=="0"
ATTR{stat}==" 35 910 1162 280 0 0 0 0 0 272280"
looking at parent device'/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/host5/target5:0:0/5:0:0:0/block/sdc':
KERNELS=="sdc"
SUBSYSTEMS=="block"
…..........................
详细:可以参考udev的官方文档。
- udev(八):实战:使用udevadm修…
- udev(八):实战:使用udevadm修…
- udev(八):实战:使用udevadm修改usb优盘在/dev下的名字
- udev(八):实战:使用udevadm修改usb优盘在/dev下的名字
- dev(八):实战:使用udevadm修改usb优盘在/dev下的名字
- udevadm使用
- udevadm
- udevadm
- udev 实战
- udev使用
- udev(六):udev
- udev(六):udev
- 使用udevadm(modinfo)查找linux下设备对应的驱动
- udev(一)-- 什么是udev
- udev(一)-- 什么是udev
- udev(一)-- 什么是udev
- udev的使用
- udev的使用
- LInux sysfs
- LInux sysfs
- 2011年07月12日
- 2011年07月12日
- udev(八):实战:使用udevadm修…
- udev(八):实战:使用udevadm修…
- [转]VirtualBox虚拟机上安装Androi…
- [转]VirtualBox虚拟机上安装Androi…
- android开发环境搭建(for 驱动开发…
- android开发环境搭建(for 驱动开发…
- android驱动例子(LED灯控制)
- android驱动例子(LED灯控制)
- 为Android内核添加新驱动,并添加…
- 为Android内核添加新驱动,并添加…