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

From: Maneesh Soni
Date: Tue Oct 07 2003 - 02:50:15 EST


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@xxxxxxxxxx
Phone: 91-80-5044999 Fax: 91-80-5268553
T/L : 9243696
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/