|
|
发表于 2006-4-29 22:30:13
|
显示全部楼层
Here is "udevsynthesize" a possible replacement for the udevstart/coldplug
combination we currently have. Usually very early in the boot process, it
gets all available devices from sysfs and synthesizes the events these
devices would have generated at creation time.
The events are directly passed to the udevd daemom socket. udevd does all the
work and runs all the events asynchronously. udevsynthesize itself does
not read any udev rule.
It scans block and class devices to create the the device nodes for already
available devices, which obsoletes the run of udevstart.
After that, it scans for bus devices, which events may load modules or
configure the device. If the bus type is known, the usual bus-specific
values are added to the event environment.
With the "rules-in-daemon" patch, the whole udevstart/coldplug handling
(700 events) takes less than a second CPU time on a 1.7Ghz laptop. 。。。。。这个。。。。 |
|