On Thursday 26 February 2004 08:10 am, 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. > > What should I pass to it? (I'm calling it from inside a screensaver module)
You can always just use curthread, it is never NULL. -- John Baldwin <[EMAIL PROTECTED]> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

