From owner-freebsd-current Wed Apr 12 20:51:19 2000 Delivered-To: freebsd-current@freebsd.org Received: from alcanet.com.au (mail.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id 09F1D37BBA9 for ; Wed, 12 Apr 2000 20:51:13 -0700 (PDT) (envelope-from jeremyp@pc0640.alcatel.com.au) Received: by border.alcanet.com.au id <115287>; Thu, 13 Apr 2000 13:51:32 +1000 From: Peter Jeremy Subject: Re: Sysctl In-reply-to: ; from oogali@intranova.net on Tue, Apr 04, 2000 at 06:43:03PM +1000 To: Omachonu Ogali Cc: freebsd-current@FreeBSD.ORG Message-Id: <00Apr13.135132est.115287@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=us-ascii References: Date: Thu, 13 Apr 2000 13:51:16 +1000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Apr 04, 2000 at 06:43:03PM +1000, Omachonu Ogali wrote: >I don't know whether to hand this to -doc or here, so I'll take the risk >of here, patch simply adds comments to sysctl variables. Before you get too enthusiastic about adding description strings to the declarations, you might like to work out: 1) How to store the descriptions so they are accessible to sysctl(8), but don't bloat the loaded kernel image. 2) How sysctl(8) should locate the descriptions. Note that your solution needs to include support for dynamically loaded sysctls. This issue tends to come up regularly. The last thread I recall was at the end of November last year in a thread on cvs-all. Have a look at http://people.freebsd.org/~green/sysctl.descr.patch for one implementation. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message