Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 1998 11:38:05 -0800
From:      Mike Smith <mike@smith.net.au>
To:        committers@FreeBSD.ORG
Subject:   Re: kvm_nlist emulation of n_type from kld symbol table at runtime.
Message-ID:  <199812301938.LAA04955@dingo.cdrom.com>

next in thread | raw e-mail | index | archive | help

> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812301938.LAA04955>