Re: Exporting array data in sysfs

From: Dmitry Torokhov
Date: Mon Sep 18 2006 - 09:56:50 EST


On 9/18/06, Rolf Eike Beer <eike-kernel@xxxxxxxxx> wrote:
Greg KH wrote:
> On Mon, Sep 18, 2006 at 01:59:17PM +0200, Rolf Eike Beer wrote:
> > Hi,
> >
> > I would like to put the contents of an array in sysfs files. I found no
> > simple way to do this, so here are my thoughts in hope someone can hand
> > me a light.
>
> What is wrong with using an attribute group for this kind of
> information?

Missing documentation. Yes, this looks like I could use this at least for the
simple interfaces (which would be enough).


I imoplemented sysfs arrays and array groups once:

http://www.ussg.iu.edu/hypermail/linux/kernel/0503.2/1155.html

Not sure if it still appliers. Maybe Greg will consider taking it in
if there is a user of this code.

--
Dmitry
-
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/