From owner-freebsd-hackers Thu Nov 4 20:47:48 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id 8BEB6150B7 for ; Thu, 4 Nov 1999 20:47:46 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id UAA01327; Thu, 4 Nov 1999 20:38:50 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199911050438.UAA01327@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Arun Sharma Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kstat - an API for gathering kernel stats In-reply-to: Your message of "Thu, 04 Nov 1999 20:10:21 PST." <19991104201021.A2302@home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 04 Nov 1999 20:38:50 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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