public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Alexander Viro <viro@math.psu.edu>
Cc: esr@thyrsus.com, schilling@fokus.gmd.de, anderson@metrolink.com,
	hch@caldera.de, lsb-discuss@lists.linuxbase.org,
	lsb-spec@lists.linuxbase.org, linux-kernel@vger.kernel.org
Subject: Re: LSB1.1: /proc/cpuinfo
Date: Mon, 7 Jan 2002 12:05:45 +1100	[thread overview]
Message-ID: <20020107120545.57570c8a.rusty@rustcorp.com.au> (raw)
In-Reply-To: <Pine.GSO.4.21.0201031944320.23693-100000@weyl.math.psu.edu>
In-Reply-To: <20020103190219.B27938@thyrsus.com> <Pine.GSO.4.21.0201031944320.23693-100000@weyl.math.psu.edu>

On Thu, 3 Jan 2002 19:56:51 -0500 (EST)
Alexander Viro <viro@math.psu.edu> wrote:

> It's more than just a name.
> 	a) granularity.  Current "all or nothing" policy in procfs has
> a lot of obvious problems.
> 	b) tree layout policy (lack thereof, to be precise).
> 	c) horribly bad layout of many, many files.  Any file exported by

As usual, Al has hit the highpoints (five lines vs. >> 1000 msgs of proc
flamewars over time).  At risk of boring regular readers, I shall expand:

There is /proc, and /proc/sys.  /proc is a pain to use in the kernel (seq_*
made this better recently, but far from perfect), but is flexible.
/proc/sys (aka sysctl) is easier to use, but a PITA for dynamic entries.

The "manual formatting" nature of /proc entries has lead to (c) mentioned by
Al.  This can be alleviated by making the simplest method of exporting data
the correct one (ie. more like /proc/sys).

The tree layout issues are more complicated.  In particular, the following
namespaces should be equivalent:
   Boot command line: 3c509.debug=1
   Module parameter: insmod 3c509 debug=1
   proc entry: echo 1 > .../3c509/debug

Finally, I consider the granularity issue a red-herring: if it's in the
kernel, it should be in a logical location.

Now, I have a sample patch for a simple "/proc/sys" replacement which follows
the "one value per file" (similar to the current proc/sys) and
"dynamic is easy" principle (required for widespread use).  I also have
module loader rewrite and boot param unification patches.

	http://www.kernel.org/pub/linux/kernel/people/rusty

Important to realize that we will be stuck with the current interfaces for
another stable kernel version (backwards compatibility is a WIP).

Once Linus accepts general patches again I shall start pushing things to
him.

Hope that helps,
Rusty.
-- 
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

  parent reply	other threads:[~2002-01-07  3:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200201032355.g03Ntx911860@burner.fokus.gmd.de>
2002-01-04  0:02 ` LSB1.1: /proc/cpuinfo Eric S. Raymond
2002-01-04  0:56   ` Alexander Viro
2002-01-04  0:52     ` Eric S. Raymond
2002-01-04  8:18       ` Erik Andersen
2002-01-04 12:19         ` Eric S. Raymond
2002-01-04 13:11           ` Andreas Schwab
2002-01-04 13:03             ` Eric S. Raymond
2002-01-04 13:25               ` Andreas Schwab
2002-01-04 13:27               ` Andreas Jaeger
2002-01-04 13:36               ` Christoph Hellwig
2002-01-04 15:34               ` Luigi Genoni
2002-01-04 17:02               ` Alan Cox
2002-01-04 18:30                 ` Eric S. Raymond
2002-01-04 21:44                 ` Ville Herva
2002-01-04 22:19                   ` H. Peter Anvin
2002-01-04 15:46           ` Jeff Garzik
2002-01-04 19:35           ` Erik Andersen
2002-01-04  1:56     ` Timothy Covell
2002-01-07  1:05     ` Rusty Russell [this message]
2002-01-04  0:35 ` Dan Kegel

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=20020107120545.57570c8a.rusty@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=anderson@metrolink.com \
    --cc=esr@thyrsus.com \
    --cc=hch@caldera.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lsb-discuss@lists.linuxbase.org \
    --cc=lsb-spec@lists.linuxbase.org \
    --cc=schilling@fokus.gmd.de \
    --cc=viro@math.psu.edu \
    /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