Date: Fri, 5 Aug 2005 09:50:46 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: "Thordur I. Bjornsson" <thib@mi.is> Cc: hackers@freebsd.org Subject: Re: Checking sysctl values from within the kernel. Message-ID: <20050805145046.GB78669@dan.emsphone.com> In-Reply-To: <20050805005543.5bd947f2.thib@mi.is> References: <20050805005543.5bd947f2.thib@mi.is>
next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050805145046.GB78669>