From owner-freebsd-hackers Wed Jun 3 21:41:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA23956 for freebsd-hackers-outgoing; Wed, 3 Jun 1998 21:41:37 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA23939; Wed, 3 Jun 1998 21:41:28 -0700 (PDT) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id XAA00768; Wed, 3 Jun 1998 23:41:14 -0500 (EST) (envelope-from toor) Message-Id: <199806040441.XAA00768@dyson.iquest.net> Subject: Re: kernfs/procfs questions... In-Reply-To: <199806040144.WAA03920@roma.coe.ufrj.br> from Joao Carlos Mendes Luis at "Jun 3, 98 10:44:55 pm" To: jonny@jonny.eng.br (Joao Carlos Mendes Luis) Date: Wed, 3 Jun 1998 23:41:14 -0500 (EST) Cc: dyson@FreeBSD.ORG, mike@dingo.cdrom.com, mike@smith.net.au, hackers@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Joao Carlos Mendes Luis said: > > Then, /dev/kmem is bogus ? > TM > The idea that file namespace controls everything is a GoodThing, > and the existence of device files is one of the things I like > more in Unix. > That is reducing things to the absurd. I don't like the silly string parsing in the debug control for procfs for example. The bad thing about multiple namespaces is when they aren't well supported, poorly designed and not hierarchical like the SYSV IPC stuff. Think of this issue: When writing a message to a /kernfs file to modify a function, do you want to implement a full and general interface for partial message transfers, etc??? Sysctl is pseudo-message based, and operations are complete within themselves. > > > I agree with somebody (Mike ?) who said that this facilitates > using of general tools. > Sysctl is easy to use with such tools also. If someone wants to use the kernfs paradigm, it is okay, but it seems to be redundant. Using sysctl is quite trivial (the man page reflects a much nicer API than the original.) Also, kernfs implies a filesystem, and the associated VFS stuff, while it isn't needed with sysctl. You don't need vnodes, or any of the other cruft to implement the unnecessary state for sysctl, while filesystems have to implement all kinds of things... -- John | Never try to teach a pig to sing, dyson@freebsd.org | it just makes you look stupid, jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message