Subject: Re: 'nother idea: /kern/unix virtual file
To: Luke Mewburn <>
From: Louis A. Mamakos <louie@TransSys.COM>
List: current-users
Date: 02/10/1994 23:42:57
> How difficult would it be to implement another file in /kern: /kern/unix?
> This would be a virtual access point (for want of a better term) to the
> current kernel. Then, I could (assuming I always have kernfs running)
> do the following hacks:
>     - change <paths.h> _PATH_UNIX to /kern/unix, and recompile everything
>     (espec. libkvm)
>     - change (if it's not already there) kvm_mkdb to default to _PATH_UNIX
>     and change /etc/rc to just call kvm_mkdb.
>     - hack /etc/rc.local to do a strings on /kern/unix if it exists.

How about just augmenting /kern to return the information you want, rather
than grovling through the kernel symbol table?  Stuff like the proc table,
routing table, file tables, etc.

There's already a /kern/version (I think) that you could use in
/etc/rc.local instead of doing a strings.