public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rolf Eike Beer <eike-kernel@sf-tec.de>
To: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
Cc: "Greg KH" <greg@kroah.com>, linux-kernel@vger.kernel.org
Subject: Re: Exporting array data in sysfs
Date: Mon, 18 Sep 2006 16:22:07 +0200	[thread overview]
Message-ID: <200609181622.07681.eike-kernel@sf-tec.de> (raw)
In-Reply-To: <d120d5000609180656t2c6be385r4ad21d52313ac187@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]

Dmitry Torokhov wrote:
> On 9/18/06, Rolf Eike Beer <eike-kernel@sf-tec.de> 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.

I guess we can add some once it is in :)

It looks good, but I would change some minor things. If there is no read 
function given I would return -EIO instead of 0, this is how other places do 
it. The limitation to 999 entries should go. But otherwise it looks very 
similar to what I had in mind.

Thanks.

Eike

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-09-18 14:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-18 11:59 Exporting array data in sysfs Rolf Eike Beer
2006-09-18 12:44 ` Greg KH
2006-09-18 13:41   ` Rolf Eike Beer
2006-09-18 13:56     ` Dmitry Torokhov
2006-09-18 14:22       ` Rolf Eike Beer [this message]
2006-09-18 14:59         ` Dmitry Torokhov
2006-09-18 15:18           ` Rolf Eike Beer
2006-09-18 15:41             ` Dmitry Torokhov
2006-09-18 15:57               ` Rolf Eike Beer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200609181622.07681.eike-kernel@sf-tec.de \
    --to=eike-kernel@sf-tec.de \
    --cc=dmitry.torokhov@gmail.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox