Re: [RFC 0/6] Backing Store for sysfs

Maneesh Soni
2003-10-07T07:39:59Z

On Tue, Oct 07, 2003 at 03:25:58PM +1000, Nick Piggin wrote:
>
>
> >
> >Having backing store just for leaf dentries should be fine. But there is
> >_no_ easy access for attributes. For this also I see some data change
> >required as of now. The reasons are
> >- not all kobjects belong to a kset. For example, /sys/block/hda/queue
> >- not all ksets have attribute groups
> >
> >
>
> queue and iosched might not be good examples as they are somewhat broken
> wrt the block device scheme. Possibly they will be put in their own kset,
> with /sys/block/hda/queue symlinked to them.
>

Well here is more crap then...

kobjects corresponding to /sys/class/tty/* and /sys/class/net/* have the
same kset (i.e class_obj) but totally different attributes. There is no
way to find the attributes given a kobject belonging to lets say
/sys/class/net/eth0 except through the hierarchy maintained in pinned sysfs
dentries.

--
Maneesh Soni
Linux Technology Center,
IBM Software Lab, Bangalore, India
email: maneesh@in.ibm.com
Phone: 91-80-5044999 Fax: 91-80-5268553
T/L : 9243696