Re: having reflect the running kernel

cloister bell (
Tue, 29 Aug 1995 19:22:21 -0700 (PDT)

> > Some applications (lsof? maybe others?) need a system map
> > file which is an accurate reflection of the running kernel.
> My first thought was why can't we do some build trickery to embed the
> in the kernel image and look at it through /proc. Then I
> remembered that it wouldn't be pageable. Bummer. But what if there
> were a way to put stuff in the kernel image and not load it into
> memory at boot-time. Like a section at the end of the kernel image
> that contains data that does not need to be in kernel-space, but is
> specific to this particular image. Then you could register a func in
> /proc to go and look at the file that the kernel image is in.
> One-stop shopping for stuff like the

that's a cool thought. the function could have a few bytes worth of data
compiled into it which tells it how big the system map is. then it could
just open the kernel image and seek to the right spot.