From owner-freebsd-hackers Thu Dec 28 11:56:07 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA26026 for hackers-outgoing; Thu, 28 Dec 1995 11:56:07 -0800 (PST) Received: from vip.cybercity.dk (www.cybercity.dk [194.16.56.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA26021 for ; Thu, 28 Dec 1995 11:56:03 -0800 (PST) Received: from critter.tfs.com by vip.cybercity.dk via ESMTP (940816.SGI.8.6.9/940406.SGI.AUTO) id UAA22718; Thu, 28 Dec 1995 20:55:48 +0100 Received: from localhost.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.6.12/8.6.12) with SMTP id UAA16607; Thu, 28 Dec 1995 20:55:43 +0100 X-Authentication-Warning: critter.tfs.com: Host localhost.tfs.com didn't use HELO protocol To: Mattias.Gronlund@sa.erisoft.se (Mattias Gronlund) cc: freebsd-hackers@FreeBSD.org Subject: Re: sysctl interface In-reply-to: Your message of "Thu, 28 Dec 1995 00:12:30 +0100." <9512272312.AA04736@sws021.sa.erisoft.se> Date: Thu, 28 Dec 1995 20:55:43 +0100 Message-ID: <16605.820180543@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-hackers@FreeBSD.org Precedence: bulk > Hi, > I now have installed 2.2-current as of 22-december and I found out > that kern_sysctl.c have gone thew a lot of changes, and that have > given me a question: > > There's some new interfaces in the sysctl MIB that's not > documented but there is a comment that says: > /* > * "Staff-functions" > * > * These functions implement a presently undocumented interface > * used by the sysctl program to walk the tree, and get the type > * so it can print the value. > * This interface is under work and consideration, and should probably > * be killed with a big axe by the first person who can find the time. > * (be aware though, that the proper interface isn't as obvious as it > * may seem, there are various conflicting requirements. > * > * {0,0} printf the entire MIB-tree. > * {0,1,...} return the name of the "..." OID. > * {0,2,...} return the next OID. > * {0,3} return the OID of the name in "new" > * {0,4,...} return the kind & format info for the "..." OID. > */ > I guess there is some essential things that isn't working > (0.4.hw.devconf.x for example), is there any ongoing work or any > forum where this is discussed? Well, essential or not, we can argue about. hw.devconf is what I consider "closed territory" and therefore these functions shouldn't try to mess with it. There exists special programs which are good at handling that area. These functions really of any value only for the variables that sysctl(8) handles. The entire sysctl area is still being reconsidered and rearchitected quite a bit, and this particular interface should >>>NOT<<< be relied on for the future. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.