Subject: Re: @booted_kernel magic symlink?
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 04/27/2006 19:35:09
"Garrett D'Amore" wrote:

> Simon Burge wrote:
> > Please check before suggesting programs like ps.  ps uses sysctls only
> > when run on a live system.
> >   
> 
> Hmm... I was reading the code and it certainly looked like it at least
> did a kvm_openfiles() (using ksyms) unconditionally.  But maybe I've
> misread the code.

Note that it passes KVM_NO_FILES to kvm_openfiles(), and kvm_open(3)
mentions that this is a special case for sysctl access.

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Support and Service:         http://www.wasabisystems.com/