From owner-freebsd-hackers Sat Nov 6 9:40:45 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 1DB7814E97 for ; Sat, 6 Nov 1999 09:40:40 -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 RAA44472; Sat, 6 Nov 1999 17:41:00 GMT (envelope-from dfr@nlsystems.com) Date: Sat, 6 Nov 1999 17:41:00 +0000 (GMT) From: Doug Rabson To: Arun Sharma Cc: Chris Costello , Mike Smith , freebsd-hackers@freebsd.org Subject: Re: kstat - an API for gathering kernel stats In-Reply-To: <19991104201021.A2302@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 Thu, 4 Nov 1999, Arun Sharma wrote: > On Thu, Nov 04, 1999 at 09:31:02PM -0600, Chris Costello wrote: > > On Thu, Nov 04, 1999, Arun Sharma wrote: > > > Can a loadable module, say a network driver register variables with > > > sysctl ? Can sysctl itself be made a loadable module ? As for the speed, > > > > a.) Yes. > > I don't see any examples in sys/modules. The SYSCTL_INT macros eventually > expands to DATA_SET which puts certain data in a different ELF section. > > In other words, sysctl seems to be relying on physical adjacency of > certain structures after linkage is done. This ELF section is used by the loader to automatically register the sysctl nodes (and unregister them on unload). -- 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