From owner-freebsd-hackers Fri Dec 17 14:24: 3 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mimer.webgiro.com (mimer.webgiro.com [212.209.29.5]) by hub.freebsd.org (Postfix) with ESMTP id 415D314E56; Fri, 17 Dec 1999 14:24:01 -0800 (PST) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 66) id E641E2DC07; Fri, 17 Dec 1999 23:24:37 +0100 (CET) Received: by mx.webgiro.com (Postfix, from userid 1001) id 7EF1B7811; Fri, 17 Dec 1999 23:23:22 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mx.webgiro.com (Postfix) with ESMTP id 74EAE10E10; Fri, 17 Dec 1999 23:23:22 +0100 (CET) Date: Fri, 17 Dec 1999 23:23:22 +0100 (CET) From: Andrzej Bialecki To: adsharma@sharmas.dhs.org.nospam Cc: hackers@freebsd.org, msmith@freebsd.org Subject: Dynamic sysctls (Re: Per CPU timekeeping for SMP) In-Reply-To: <199912171941.LAA25185@c62443-a.frmt1.sfba.home.com> 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, 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. I was thinking exactly about the same, and I was going to implement them myself... IMO these patches should go to the tree - without them the work that Mike Smith put into sysctl infrastructure is much less useful for average Joe Kernel Hacker... Andrzej Bialecki // WebGiro AB, Sweden (http://www.webgiro.com) // ------------------------------------------------------------------- // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message