Subject: Re: kvm_open and _PATH_UNIX
To: Andy Doran <ad@psn.ie>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 04/24/1999 13:56:11
On Sat, 24 Apr 1999 10:40:44 +0100 (IST) 
 Andy Doran <ad@psn.ie> wrote:

 > It's a bit of a pain that kvm_open can't automagically determine the
 > running kernel's name, particularly in situations where you boot a backup.
 > Provided the bootblocks for the various ports can provide a name, what
 > about adding a sysctl variable called ``kern.bootfile'', then importing
 > the getbootfile() function from FreeBSD, which queries this?

machdep.booted_kernel

it's machdep because not all ports can provide it.

There are, of course, various problems with even this scheme (i.e. the
one used by freebsd and the one supplied by machdep.booted_kernel).

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>