Subject: Re: @booted_kernel magic symlink?
To: Simon Burge <simonb@wasabisystems.com>
From: Garrett D'Amore <garrett_damore@tadpole.com>
List: tech-kern
Date: 04/27/2006 09:19:39
Simon Burge wrote:
> "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.
>
Ah. I didn't realize that this is how it worked. Thanks for that
clarification.
-- Garrett
> Simon.
> --
> Simon Burge <simonb@wasabisystems.com>
> NetBSD Support and Service: http://www.wasabisystems.com/
>
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191