From owner-freebsd-current Sun Jan 24 13:51:09 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23018 for freebsd-current-outgoing; Sun, 24 Jan 1999 13:51:09 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23012 for ; Sun, 24 Jan 1999 13:51:04 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.9.2/8.9.2/Netplex) with ESMTP id FAA03656; Mon, 25 Jan 1999 05:50:32 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199901242150.FAA03656@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Archie Cobbs cc: julian@whistle.com (Julian Elischer), wollman@khavrinen.lcs.mit.edu, current@FreeBSD.ORG Subject: Re: kvm question In-reply-to: Your message of "Sun, 24 Jan 1999 13:30:37 PST." <199901242130.NAA21377@bubba.whistle.com> Date: Mon, 25 Jan 1999 05:50:32 +0800 From: Peter Wemm Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. The correct fix, BTW, is to dump kvm_mkdb and have kvm_nlist() get it's data from the kernel, either via kldsym() or via a sysctl mechanism (which a lot of people have suggested, but nobody has shown the slightest interest in suggesting how this could/should be done). > -Archie Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message