source: udev-config/doc/05-udev-early.txt@ 7f6363f

6.4
Last change on this file since 7f6363f was 1c48007, checked in by Bruce Dubbs <bdubbs@…>, 16 years ago

Moved bootscripts and udev-config to BOOK
Updated Makefile to automatically generate bootscript and udev-config tarballs
Updated licesnse to be the same as BLFS

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8548 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 1.5 KB
Line 
1Purpose of rules file:
2
3The kernel does not always fully populate a given kobject's attributes before
4sending the uevent for that kobject. This means that a given sysfs directory
5may not have all the required files in it (each directory corresponds to a
6kobject, and each file corresponds to an attribute).
7
8Therefore, we must sometimes wait for attributes to show up when devices are
9discovered. This is accomplished by udev's WAIT_FOR_SYSFS rule types.
10
11
12Description of rules:
13
14All rules in this file match ACTION="add", because none of them apply when
15devices are being removed.
16
17SUBSYSTEM is the kernel subsystem that the device uses. Current kernels have
18some issues with SCSI device attributes being created too late. For any device
19with a SUBSYSTEM of scsi, we must wait for the ioerr_cnt attribute. (This is
20the last attribute created for SCSI devices, so when this attribute appears,
21the kobject is fully populated.)
22
23It is also possible to use SUBSYSTEMS in Udev rules. Using SUBSYSTEMS would
24cause Udev to search up the device tree for a matching SUBSYSTEM value. (Note
25that "the device tree" is not necessarily the same as the path under /sys (the
26DEVPATH). Rather, "up the device tree" is the path followed by udevinfo when
27it is given the argument "-a".)
28
29We do not use SUBSYSTEMS in this rule, because we only care about the SUBSYSTEM
30of the kobject in question. We don't care about devices that are children of
31SCSI devices, only the SCSI device itself. We will use SUBSYSTEMS in later
32rules, though.
33
Note: See TracBrowser for help on using the repository browser.