Re: Accessing sysctls from kernel
From: Ivan Voras (ivoras_at_fer.hr)
Date: 02/26/04
- Previous message: Bernd Walter: "kernel level tty question"
- In reply to: Bruce M Simpson: "Re: Accessing sysctls from kernel"
- Next in thread: Robert Watson: "Re: Accessing sysctls from kernel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 Feb 2004 14:42:18 +0100 To: hackers@freebsd.org
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.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Bernd Walter: "kernel level tty question"
- In reply to: Bruce M Simpson: "Re: Accessing sysctls from kernel"
- Next in thread: Robert Watson: "Re: Accessing sysctls from kernel"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|