From owner-freebsd-hackers Wed Aug 23 11:34:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (beachchick.freebsd.dk [212.242.34.254]) by hub.freebsd.org (Postfix) with ESMTP id 36C3137B422 for ; Wed, 23 Aug 2000 11:34:25 -0700 (PDT) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id UAA04750; Wed, 23 Aug 2000 20:34:22 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Maxime Henrion Cc: hackers@FreeBSD.ORG Subject: Re: sysctl from kernel In-Reply-To: Your message of "Wed, 23 Aug 2000 20:31:52 +0200." <39A41897.173F00@cybercable.fr> Date: Wed, 23 Aug 2000 20:34:22 +0200 Message-ID: <4748.967055662@critter> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <39A41897.173F00@cybercable.fr>, Maxime Henrion writes: > Hi, > >I'm new to the FreeBSD kernel and I wanted to know what are the good >methods to read a sysctl value from the kernel. Is it the same interface >as in user-space ? > >Any help or links to some documentation would be greatly appreciated :) Look at the kernel_sysctl() function in src/sys/kern/kern_sysctl.c -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message