From owner-freebsd-hackers Thu Nov 4 20:11:27 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id AD69C1567E for ; Thu, 4 Nov 1999 20:11:24 -0800 (PST) (envelope-from adsharma@c62443-a.frmt1.sfba.home.com) Received: from c62443-a.frmt1.sfba.home.com ([24.0.69.165]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <19991105041022.JGBB11261.mail.rdc1.sfba.home.com@c62443-a.frmt1.sfba.home.com>; Thu, 4 Nov 1999 20:10:22 -0800 Received: (from adsharma@localhost) by c62443-a.frmt1.sfba.home.com (8.9.3/8.9.3) id UAA02313; Thu, 4 Nov 1999 20:10:22 -0800 Date: Thu, 4 Nov 1999 20:10:21 -0800 From: Arun Sharma To: Chris Costello Cc: Mike Smith , freebsd-hackers@FreeBSD.ORG Subject: Re: kstat - an API for gathering kernel stats Message-ID: <19991104201021.A2302@home.com> References: <19991104140551.A1331@home.com> <199911050230.SAA00664@dingo.cdrom.com> <19991104192252.A2194@home.com> <19991104213102.V602@holly.calldei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <19991104213102.V602@holly.calldei.com>; from Chris Costello on Thu, Nov 04, 1999 at 09:31:02PM -0600 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. 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