lkml.org 
[lkml]   [2000]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: /proc guidelines and sysctl
From
Date
torvalds@transmeta.com (Linus Torvalds) writes:

> On Thu, 6 Jan 2000, Alexander Viro wrote:
> > > functions that can be used to add a block of /proc names. However, it
> > > has other downsides (allocating silly numbers etc - there should be no
> > > need for that, considering that the /proc namespace is alreayd a
> > > perfectly good namespace).
> >
> > Oh, please! All we need is sysctlbyname(2) - _not_ a problem, and closes
> > all problems with numbers. And it should not work through mounted procfs -
> > we can traverse the tree doing comparisons by name just fine. The fact
> > that sysctl(8) needs mounted procfs is an artificial misfeature, nothing
> > more.
>
> I'll accept a patch that turns sysctl into a proc-only thing.
>
> The current problem is that sysclt tries to be more than proc, and has its
> own name-space etc. Not worth it.

The nice thing of giving up the sysctl numbers is that it would
be possible to use some ELF section based scheme for declaring sysctl
variables in nice wrapper macros. You could get a sysctl variable with
a single declaration. This would make them a lot more easy. Would you
accept a patch for that?

-Andi


--
This is like TV. I don't like TV.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.095 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site