Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Nov 1999 20:10:21 -0800
From:      Arun Sharma <adsharma@home.com>
To:        Chris Costello <chris@calldei.com>
Cc:        Mike Smith <mike@smith.net.au>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: kstat - an API for gathering kernel stats
Message-ID:  <19991104201021.A2302@home.com>
In-Reply-To: <19991104213102.V602@holly.calldei.com>; from Chris Costello on Thu, Nov 04, 1999 at 09:31:02PM -0600
References:  <19991104140551.A1331@home.com> <199911050230.SAA00664@dingo.cdrom.com> <19991104192252.A2194@home.com> <19991104213102.V602@holly.calldei.com>

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

	-Arun



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?19991104201021.A2302>