disk)
Access: 2011-08-24 18:25:02.902025252 +0800
Modify: 2011-08-18 15:14:17.281472005 +0800
Change: 2011-08-18 15:14:17.281472005 +0800
/sys/devices:
----------------------------
Contains a filesystem representation of the device tree. It maps
directly to the internal kernel device tree, which is a hierarchy
of struct device.
udev:
-----------------------------
udev is a device management framework that replaced the devfs
facility in the Linux 2.6 kernel. It is composed of some kernel
services and the udevd daemon. The kernel informs the udevd daemon
when certain events happen. The udevd daemon is configured to
respond to some events with actions. Always, it means
adding/removing device file under /dev dynamically.
* When the kernel detects that a device has been added or removed,
a uevent is sent to
the udevd daemon through a netlink socket
* When udevd receives the uevent, it matches its configured rules
against the available
device attributes provided in sysfs
* If a match is found, one or more actions (e.g., create device
node, remove device node,
install firmware, etc.) are taken
(Usage Reference:
http://www.ibm.com/developerworks/cn/linux/l-cn-udev/index.html?ca=drs-cn-0304)