Skip to contentSkip to conversation

/* we have /subsystem/, forget all the old stuff */

DISCUSSION Alan Jenkins 2 participants 2 messages Nov 7, 2009

lore
Share & tools
lore
#0 lore raw

I don't have /subsystem/ (v2.6.32-rc5, no CONFIG_SYSFS_DEPRECATED).

$ ls /sys
block  bus  class  dev  devices  firmware  fs  hypervisor  kernel  
module  power

Yet there is some code in udev_enumerate_scan_devices() which tries to use /sys/subsystem/. Will it be implemented in some future kernel? If not, should the code be removed from udev? If it is currently necessary for backwards compatability, perhaps the comment should be updated :-).

Regards
Alan

#1 lore raw
Quoted 10 lines · Alan Jenkins

I don't have /subsystem/ (v2.6.32-rc5, no CONFIG_SYSFS_DEPRECATED).

$ ls /sys
block  bus  class  dev  devices  firmware  fs  hypervisor  kernel  module
 power

Yet there is some code in udev_enumerate_scan_devices() which tries to use /sys/subsystem/.  Will it be implemented in some future kernel?  If not, should the code be removed from udev?  If it is currently necessary for backwards compatability, perhaps the comment should be updated :-).

It will come some day, and unify the access across all subsystems and allow proper per-subsys attribute for "classes". I just need to some more time to finish it properly.

References are here:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/sysfs-rules.txt;hb=HEAD
http://git.kernel.org/?p=linux/kernel/git/kay/patches.git;a=blob;f=subsys.patch;hb=HEAD

Cheers,
Kay