From owner-freebsd-current Sat Jan 23 11:05:20 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA03550 for freebsd-current-outgoing; Sat, 23 Jan 1999 11:05:20 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA03545 for ; Sat, 23 Jan 1999 11:05:18 -0800 (PST) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id LAA21931; Sat, 23 Jan 1999 11:04:28 -0800 (PST) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma021929; Sat, 23 Jan 99 11:04:15 -0800 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id LAA18363; Sat, 23 Jan 1999 11:04:15 -0800 (PST) From: Archie Cobbs Message-Id: <199901231904.LAA18363@bubba.whistle.com> Subject: Re: kvm question In-Reply-To: <199901231658.IAA00639@dingo.cdrom.com> from Mike Smith at "Jan 23, 99 08:58:41 am" To: mike@smith.net.au (Mike Smith) Date: Sat, 23 Jan 1999 11:04:15 -0800 (PST) Cc: current@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-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith writes: > Yes, there's a desire to see this fixed; it requires a significant > rewrite of the sysctl stuff unfortunately. Mark Murray was working on > this but probably as a 4.x feature; if you have something simpler you > feel up to contributing in the short term you'd be very popular. Peter pointed out that having the sysctl's as symbols was a nice advantage of the current system. How important is this? If we were willing to give this up, then the SYSCTL() macro could just expand to a SYSINIT() that called sysctl_add_subtree() (or whatever you want to call it) upon loading. This sysctl_add_subtree() would maintain the sysctl tree... it would allow new subtrees and nodes to be added when new KLD's were loaded. It could also subtree support removal when the KLD goes away. Seems pretty straightforward, but I'm probably missing something. I don't think any user-land programs would have to change. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message