From: jw schultz <jw@pegasys.ws>
To: linux-kernel@vger.kernel.org
Subject: Re: the userspace side of driverfs
Date: Wed, 11 Sep 2002 22:11:27 -0700 [thread overview]
Message-ID: <20020912051127.GH10315@pegasys.ws> (raw)
In-Reply-To: <Pine.LNX.4.44.0209112254260.17242-100000@humbolt.us.dell.com>
On Wed, Sep 11, 2002 at 11:13:17PM -0500, Matt Domsch wrote:
> > The main ideal that we're shooting for is to have one ASCII value per
> > file. The ASCII part is mandatory, but there will definitely be exceptions
> > where we will have an array of or multiple values per file. We want to
> > minimize those instances, though. Both for the sake of easy parsing, but
> > also for easy formatting within the drivers.
>
> On IA-64, I've got the arch/ia64/kernel/efivars.c module that exports
> /proc/efi/vars/{NVRAM-variables}. It violates several rules of /proc
> which I'd like to address in 2.5.x via driverfs.
> 1) It's in /proc but isn't process-related.
> 2) It exports its data as binary, not ascii.
>
> Proc was chosen because it was simple, didn't require a major/minor
> number, showed easily the set of NVRAM variables that were available
> without needing a separate program to go and query a /dev/efivars file
> to list them; cat and tar are sufficient for making copies of
> variables and restoring them back again. These exact features make
> driverfs make sense too.
>
> 1) is easy to fix. 2) a little less so. The data structure being
> exported is a little over 2KB in length; The data is binary (itself a
> variable length set of structures each with no ascii representation).
> An ascii representation in "%02x" format will be longer than a 4K page
> given to fill out and return. Undoubtedly there's a better way to
> handle this, and I'm open to suggestions. The thing being exported is
> efi_variable_t.
>
> For such cases where the data being exported is really binary,
> having a common set of parse/unparse routines would be nice.
I don't know what others think of this but i'd say that some
binary files are appropriate. In a case like this i'd say
a files named 'nvram' and 'bios' or 'firmware' would be good
candidates for opaque binary structures and firmware. This
is particularly the true if the data is purely related to
the device. Ultimately it'd be nice to be able to upload
and download (install) firmware this way.
Now if a datum is a parameter suitable for tuning i'd like
it made visible and updatable in an ASCII form. In other
words i'd like to see an end to the proliferation of obscure
tools like hdparm.
These opinion does not necessarily reflect the views of
anyone else.
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw@pegasys.ws
Remember Cernan and Schmitt
next prev parent reply other threads:[~2002-09-12 5:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-11 1:18 the userspace side of driverfs Nicholas Miell
2002-09-11 2:16 ` Greg KH
2002-09-11 4:38 ` Patrick Mochel
2002-09-11 4:52 ` Nicholas Miell
2002-09-11 7:00 ` Miquel van Smoorenburg
2002-09-11 20:05 ` Nicholas Miell
2002-09-12 1:25 ` jw schultz
2002-09-12 4:13 ` Matt Domsch
2002-09-12 5:11 ` jw schultz [this message]
2002-09-12 16:41 ` Patrick Mochel
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=20020912051127.GH10315@pegasys.ws \
--to=jw@pegasys.ws \
--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