Subject: Re: @booted_kernel magic symlink?
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-kern
Date: 04/25/2006 10:59:28
On Tue, 25 Apr 2006 07:50:17 -0700, "Garrett D'Amore"
<garrett_damore@tadpole.com> wrote:

> Bill Studenmund wrote:
> > On Mon, Apr 24, 2006 at 05:41:35PM -0700, Garrett D'Amore wrote:
> >   
> >> IMO, the energy spent on this would be better spent making programs not
> >> access kernel memory directly.
> >>     
> >
> > Depends on who is doing it. If the developer in question could work on 
> > both and is equally interested in both (or more interested in sysctl), 
> > then yes, moving away from always needing libkvm is good. However not all 
> > the folks who can work on an rc script to try and figure things out can 
> > also bash on kernel groveling code.
> >
> > So if someone wants to add an rc script for this, let's let them. :-)
> >   
> 
> A sysctl is needed to expose the booted kernel name to an rc script,
> isn't it?  Or is it already there in sysctl?

$ sysctl machdep.booted_kernel
machdep.booted_kernel = netbsd




		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb