public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: jw schultz <jw@pegasys.ws>
To: linux-kernel@vger.kernel.org
Subject: Re: the userspace side of driverfs
Date: Wed, 11 Sep 2002 18:25:52 -0700	[thread overview]
Message-ID: <20020912012552.GF10315@pegasys.ws> (raw)
In-Reply-To: <Pine.LNX.4.44.0209102122520.1057-100000@cherise.pdx.osdl.net>

On Tue, Sep 10, 2002 at 09:38:24PM -0700, Patrick Mochel wrote:
> I agree. There has been a lot of talk on this topic, but I don't think 
> much has gotten down on paper, though there might be some in the 
> archives...
> 
> 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.

Good so far.  When you have one value in a file the filename
tells you what it is.  What i don't want to see is more of
the multiple values in a file without labels or headings.
eg. /proc/sys/fs/inode-state (2.4.18):
	1792	133	0	0	0	0	0
I can't really trust documentation to keep up so the only
way i can be sure what these numbers are, is to look in the
kernel source.

Please, if you must have multiple values give them labels.

If it can only be 1 dimensional put one per line with a
label.  I don't care whether whether it 'label text:  value'
or 'label_text=value'  just as long as we are consistent
about the delimiters, capitalization (don't), whitespace and
underscore/dash.

If it needs to be 2 dimensional put the labels at the top as
a comment line (/^[;#]/d).  Using fixed width fields is asking
for trouble.  I prefer tab delimited but padding the fields
for alignment is OK as would be using tabs as long as we
agree on method and the labels don't have spaces.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

		Remember Cernan and Schmitt

  parent reply	other threads:[~2002-09-12  1:21 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 [this message]
2002-09-12  4:13     ` Matt Domsch
2002-09-12  5:11       ` jw schultz
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=20020912012552.GF10315@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