Date: Fri, 25 Sep 1998 00:48:42 -0700 From: Mike Smith <mike@smith.net.au> To: Alex <garbanzo@hooked.net> Cc: hackers@FreeBSD.ORG Subject: Re: sysctl descriptions.. sorta.. Message-ID: <199809250748.AAA01220@word.smith.net.au> In-Reply-To: Your message of "Fri, 25 Sep 1998 00:26:40 PDT." <Pine.BSF.4.00.9809242330510.308-100000@zippy.dyn.ml.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809250748.AAA01220>