Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2000 15:34:53 -0400 (EDT)
From:      Kelly Yancey <kbyanc@posi.net>
To:        "Jorge Sa' Silva" <jsilva@utad.pt>
Cc:        freebsd-hackers@FreeBSD.ORG, sasilva@gcom.utad.pt
Subject:   Re: kernel function
Message-ID:  <Pine.BSF.4.05.10006291530310.9682-100000@kronos.networkrichmond.com>
In-Reply-To: <200006291406.QAA23705@marao.utad.pt>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 29 Jun 2000, Jorge Sa' Silva wrote:

> Hi
> 
> I tried to use the sysctl() function in the kernel space, 
> but when I do the "kernel make" it doesn't recognize the sysctl(). I did the 
> include of <sys/sysctl.h> and <sys/types.h>. 
> Do you know where is the problem?
> 

  In theory, you don't need to use sysctl in kernel space. The purpose of
sysctl is to present kernel data to userland in a structured manner.
Presumably, kernel code can already access kernel data :)
  Just grep the code for the SYSCTL definition you would like to access
and see which variable or function it refers to. Then just access that
variable/call that function yourself.

  Kelly

--
Kelly Yancey  -  kbyanc@posi.net  -  Belmont, CA
System Administrator, eGroups.com                  http://www.egroups.com/
Maintainer, BSD Driver Database       http://www.posi.net/freebsd/drivers/
Coordinator, Team FreeBSD        http://www.posi.net/freebsd/Team-FreeBSD/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10006291530310.9682-100000>