From owner-freebsd-hackers Sat Dec 18 6:43:48 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 1616114CAE; Sat, 18 Dec 1999 06:43:46 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id OAA85016; Sat, 18 Dec 1999 14:53:59 GMT (envelope-from dfr@nlsystems.com) Date: Sat, 18 Dec 1999 14:53:59 +0000 (GMT) From: Doug Rabson To: Zhihui Zhang Cc: Andrzej Bialecki , adsharma@sharmas.dhs.org.nospam.demon.co.uk, hackers@freebsd.org, msmith@freebsd.org Subject: Re: Dynamic sysctls (Re: Per CPU timekeeping for SMP) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 17 Dec 1999, Zhihui Zhang wrote: > > On Fri, 17 Dec 1999, Andrzej Bialecki wrote: > > > On Fri, 17 Dec 1999, Arun Sharma wrote: > > > > > I have also figured out how to dynamically register sysctl nodes. > > > The trick is to basically malloc a sysctl_oid and fill in the right > > > fields and calling sysctl_register_oid. The code is in a kernel > > > module available from: > > > > > > http://sharmas.dhs.org/~adsharma/projects/freebsd/sysctl.tar.gz > > > > > > It really needs to go into the base kernel. Also, I think > > > sysctl_register_long and its yet to be written friends (register_int) > > > etc, need to go into kern_sysctl - so that others can reuse the code > > > to dynamically create sysctl nodes. > > > > Can this patch be applied to FreeBSD 3.3-Release? If so, is it difficult > to do so? You would need to port the dynamic sysctl work first. In principle it isn't difficult but it affects quite a few files other than the core sysctl code itself. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message