Date: Mon, 14 Jan 2008 16:50:12 +0100 From: Marcin Cieslak <saper@system.pl> To: freebsd-hackers@freebsd.org Subject: Re: Examples of sysctl/sysctlbyname/sysctlnametomib? Message-ID: <478B84B4.3010000@system.pl> In-Reply-To: <20080114132440.GA71321@eos.sc1.parodius.com> References: <20080114132440.GA71321@eos.sc1.parodius.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Jeremy Chadwick wrote: > Does anyone know of some documentation which would help explain how to > walk the sysctl MIB tree for such things as dev.cpu? The sysctl(3) > documentation is not very clear in regards to how to do this, and the > closest thing I can find is what's in src/usr.sbin/powerd/powerd.c. Does sysctl_all() of src/sbin/sysctl/sysctl.c does that what you need? Mightt be easier to iterate a whole subtree and skipping things you don't need. --Marcin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478B84B4.3010000>