From owner-freebsd-hackers Fri Aug 25 22:23: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from racine.cybercable.fr (racine.cybercable.fr [212.198.0.201]) by hub.freebsd.org (Postfix) with SMTP id 1243437B422 for ; Fri, 25 Aug 2000 22:23:06 -0700 (PDT) Received: (qmail 6468406 invoked from network); 26 Aug 2000 05:23:04 -0000 Received: from r121m50.cybercable.tm.fr (HELO cybercable.fr) ([195.132.121.50]) (envelope-sender ) by racine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 26 Aug 2000 05:23:04 -0000 Message-ID: <39A754D0.834409BE@cybercable.fr> Date: Sat, 26 Aug 2000 07:25:36 +0200 From: Maxime Henrion X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Poul-Henning Kamp Cc: hackers@freebsd.org Subject: Re: sysctl from kernel References: <4748.967055662@critter> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks for your help ! If someone would be kind enough to answer them, I have a few other questions. I'm currently trying to modify sysctl_kern_proc() function in src/sys/kern/kern_proc.c But, to modify it, I must understand it first ;-) First, this sysctl is supposed to give the list of the running processes, but where this information is stored ? The function returns an int so it's probably not this :-) Second, what is an "oib" ? There are a lot of oib related stuff with sysctl and I can't understand what it is. Thanks for all future help. Maxime Henrion Poul-Henning Kamp wrote: > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message