Checking sysctl values from within the kernel.

Dan Nelson dnelson at allantgroup.com
Fri Aug 5 14:50:52 GMT 2005


In the last episode (Aug 05), Thordur I. Bjornsson said:
> If I want to check a sysctl value from within the kernel (e.g. an
> KLD), should I use the system calls described in sysctl(3) ?
> 
> If not, what is the propper way to do so ?

Since most sysctls are direct mappings onto integer variables in the
kernel, just check the variable directly.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-hackers mailing list