From owner-freebsd-hackers Fri Sep 25 00:43:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA18246 for freebsd-hackers-outgoing; Fri, 25 Sep 1998 00:43:12 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from word.smith.net.au (castles360.castles.com [208.214.167.60]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA18240 for ; Fri, 25 Sep 1998 00:43:09 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.9.1/8.8.8) with ESMTP id AAA01220; Fri, 25 Sep 1998 00:48:43 -0700 (PDT) (envelope-from mike@word.smith.net.au) Message-Id: <199809250748.AAA01220@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Alex cc: hackers@FreeBSD.ORG Subject: Re: sysctl descriptions.. sorta.. In-reply-to: Your message of "Fri, 25 Sep 1998 00:26:40 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 25 Sep 1998 00:48:42 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Welp, it's here.. I figured that the easiest way to go about adding some > way to retreive descriptions for individual sysctls/mibs/whatever you want > to call them was to add a syscall. > > So I've put some diffs that should add a new syscall (getsyscalldescr(2)) > to achieve this (and also attempt to document a few more sysctls) at > http://www.wenet.net/~garbanzo/junk. A small example of how to use this is > also available at the afformentioned URL. Wrong way to do it. Use another "magic" method; see kern/kern_sysctl for the existing "magic" methods. I'd use {0,5,...} in the same fashion as {0,4,...} is already implemented. Should be very easy. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message