From owner-cvs-all Wed Dec 30 11:41:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA23453 for cvs-all-outgoing; Wed, 30 Dec 1998 11:41:25 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from dingo.cdrom.com (castles147.castles.com [208.214.165.147]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA23448 for ; Wed, 30 Dec 1998 11:41:22 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id LAA04955 for ; Wed, 30 Dec 1998 11:38:05 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199812301938.LAA04955@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: committers@FreeBSD.ORG Subject: Re: kvm_nlist emulation of n_type from kld symbol table at runtime. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 30 Dec 1998 11:38:05 -0800 From: Mike Smith Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > Nutshell: Can anybody forsee the need to export symbol type to userland? > > Now for the details.. :-) > > The in-kernel linker keeps a small symbol table (of global symbols only for > a stripped kernel). This is used for loading and unloading, to provide > DDB with lookup capabilities, etc. > > Obviously, with a massively modular kernel (something we don't have yet, > and hopefully we won't go overboard on), doing a kvm_mkdb(8) on /kernel at > boot time and having kvm_nlist() read those is going to become rather > useless rather quickly. > > The obvious solution is to provide access to the current symbol table to > userland. No, the obvious solution is to improve and expand the sysctl interface, which already provides size and type information. -- \\ 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