Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 14:42:18 +0100
From:      Ivan Voras <ivoras@fer.hr>
To:        hackers@freebsd.org
Subject:   Re: Accessing sysctls from kernel
Message-ID:  <403DF7BA.1060407@fer.hr>
In-Reply-To: <20040226133159.GA17994@saboteur.dek.spc.org>
References:  <403DF050.80208@fer.hr> <20040226133159.GA17994@saboteur.dek.spc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce M Simpson wrote:
> On Thu, Feb 26, 2004 at 02:10:40PM +0100, Ivan Voras wrote:
> 
>>In sys/sys/sysctl.h I see function kernel_sysctlbyname() that looks (to 
>>me) to be intended for accessing sysctl values from kernel, but for it's 
>>first parameter it requires a struct thread *td.

> 
> You could try lying about which thread you are, when you aren't in
> a userland thread:

Ok, that seems reasonable - I'll try using thread0.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?403DF7BA.1060407>