Accessing sysctls from kernel
Ivan Voras
ivoras at fer.hr
Thu Feb 26 05:45:25 PST 2004
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.
More information about the freebsd-hackers
mailing list