From owner-freebsd-current Sun Jan 24 17:04:06 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA18424 for freebsd-current-outgoing; Sun, 24 Jan 1999 17:04:06 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA18377 for ; Sun, 24 Jan 1999 17:04:01 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by nlsystems.com (8.9.1/8.8.5) with SMTP id BAA82249; Mon, 25 Jan 1999 01:05:29 GMT Date: Mon, 25 Jan 1999 01:05:29 +0000 (GMT) From: Doug Rabson To: Archie Cobbs cc: Julian Elischer , wollman@khavrinen.lcs.mit.edu, current@FreeBSD.ORG Subject: Re: kvm question In-Reply-To: <199901242130.NAA21377@bubba.whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 24 Jan 1999, Archie Cobbs wrote: > Julian Elischer writes: > > As soon as someone modifies sysctl to work with KLD modules.... > > that would be a reasonable suggestion > > > > On Sun, 24 Jan 1999, Garrett Wollman wrote: > > > > I ran into an interesting problem in the process of modifying > > > > "netstat" to understand the PF_NETGRAPH protocol family. "netstat" > > > > uses kvm_read(), etc. to read kernel symbols. However, this doesn't > > > > > > Don't do that. Use sysctl, that's what it's there for. > > > > > > -GAWollman > > Julian is of course correct... but Garrett you missed my point... > > Forget netstat for a second. The question is simply, "I'm offering > to fix libkvm to understand KLD modules; is anybody interested?" > > Whether libkvm should even exist in a perfect world (it shouldn't) > is an entirely different question. For now, we're stuck with it > until somebody changes *everything* to use sysctl instead. I've been hacking all evening on sysctl. I have a scheme using SLISTs to store the contents of a SYSCTL_NODE and SYSINIT to register the oids. It should work well when I finish debugging it but there is a cost of 2*sizeof(void*) per sysctl entry. -- 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-current" in the body of the message