Accessing sysctls from kernel

Ivan Voras ivoras at fer.hr
Thu Feb 26 05:13:48 PST 2004


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.

What should I pass to it? (I'm calling it from inside a screensaver module)




More information about the freebsd-hackers mailing list