Skip to contentSkip to conversation

udev libsysfs diet (pre 2.0 version)

DISCUSSION Kay Sievers 1 participant 1 message Feb 23, 2005

lore
Share & tools
lore
#0 lore raw

I've applied a new version of libsysfs which is much smaller and faster than the old one.

After some discussion with the libsysfs maintainers we decided to change the api to better reflect the current state of the kernels sysfs. libsysfs will now only open attributes which content is explicitely requested and it will not automatically go down into subdirectories to look for attributes.

The next kernel version will have a "bus" link for physical devices along with the already present "driver" link. The current "driver" link on the class devices will be removed. This makes sysfs more consistent:
o class devices may have a "device" link
o physical devices may have the "bus" and the "driver"
To get the driver behind a class device just follow the device link and get it from the physical device.

The new libsysfs will recognize these symlinks and does not need to search through the whole /sys/bus directory to find the matching device. udevstart is about 30% faster with all these changes now.

Thanks,
Kay

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel