From owner-freebsd-questions@FreeBSD.ORG Sun Sep 9 23:33:25 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8685916A417 for ; Sun, 9 Sep 2007 23:33:25 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (66-230-99-27-cdsl-rb1.nwc.acsalaska.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 42AD513C442 for ; Sun, 9 Sep 2007 23:33:25 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 9E5B61CCA6 for ; Sun, 9 Sep 2007 15:33:24 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Mon, 10 Sep 2007 01:33:21 +0200 User-Agent: KMail/1.9.7 References: <20070909205025.GA40102@glitch.rwxrwxrwx.net> <20070909223203.GA50980@owl.midgard.homeip.net> <20070909225208.GA40915@glitch.rwxrwxrwx.net> In-Reply-To: <20070909225208.GA40915@glitch.rwxrwxrwx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709100133.22588.fbsd.questions@rachie.is-a-geek.net> Subject: Re: Getting the CPU frequency in C X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2007 23:33:25 -0000 On Monday 10 September 2007 00:52:08 Martin Tournoij wrote: > Thought you could only fetch the sysctl values defined in sys/sysctl.h > with sysctl()/sysctlbyname(), apparently not... No, I believe those are guaranteed to be available (more to the point: made available through /boot/kernel/kernel). Kernel modules (and as such drivers) can also expose their settings via sysctl and since they can be loaded dynamically and don't have to be part of the base src tree, sys/sysctl.h doesn't know about them. For example: sysctl vfs.fuse.fuse4bsd_version vfs.fuse.fuse4bsd_version: 0.3.9-pre1 which is /usr/ports/sysutils/fusefs-kmod. -- Mel