From owner-cvs-all Wed Dec 30 17:02:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA27198 for cvs-all-outgoing; Wed, 30 Dec 1998 17:02:29 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA27192 for ; Wed, 30 Dec 1998 17:02:28 -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.1/8.8.8) with ESMTP id QAA00478; Wed, 30 Dec 1998 16:54:30 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199812310054.QAA00478@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Nate Williams cc: Poul-Henning Kamp , Mike Smith , committers@FreeBSD.ORG Subject: Re: kvm_nlist emulation of n_type from kld symbol table at runtime. In-reply-to: Your message of "Wed, 30 Dec 1998 16:59:45 MST." <199812302359.QAA06821@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 30 Dec 1998 16:54:30 -0800 From: Mike Smith Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > > >> Nutshell: Can anybody forsee the need to export symbol type to userland? > > >> > > >No, the obvious solution is to improve and expand the sysctl interface, > > >which already provides size and type information. > > > > It would be trivial to implement in a sysctl, and we can even do it > > as > > sysctl kern.nlist.val.avenrun > > sysctl kern.nlist.type.avenrun > > if you want to... > > What about 'loadable' drivers that may have multiple symbols for > multiple interfaces, ala network cards? > > kern.nlist.ed0.softc? Eugh. I think we're at cross purposes here. Exporting the kernel symbol table for debugging purposes is one thing, exporting entities out of the kernel for eg. statistical operations is another entirely. I see a strong line between those two uses, however, with different access mechanisms being suited for each. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message