Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Nov 1999 17:41:00 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Arun Sharma <adsharma@home.com>
Cc:        Chris Costello <chris@calldei.com>, Mike Smith <mike@smith.net.au>, freebsd-hackers@freebsd.org
Subject:   Re: kstat - an API for gathering kernel stats
Message-ID:  <Pine.BSF.4.10.9911061740150.25540-100000@salmon.nlsystems.com>
In-Reply-To: <19991104201021.A2302@home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9911061740150.25540-100000>