Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Nov 1999 20:38:50 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Arun Sharma <adsharma@home.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: kstat - an API for gathering kernel stats 
Message-ID:  <199911050438.UAA01327@dingo.cdrom.com>
In-Reply-To: Your message of "Thu, 04 Nov 1999 20:10:21 PST." <19991104201021.A2302@home.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.

You don't do anything magic at all; it's handled invisibly by the 
kernel linker.

-- 
\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
\\ Tell him he should learn how to fish himself,  \\  msmith@freebsd.org
\\ and he'll hate you for a lifetime.             \\  msmith@cdrom.com




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?199911050438.UAA01327>