Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2000 09:18:10 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Maxime Henrion <mhenrion@cybercable.fr>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: sysctl from kernel 
Message-ID:  <83248.967274290@critter>
In-Reply-To: Your message of "Sat, 26 Aug 2000 07:25:36 %2B0200." <39A754D0.834409BE@cybercable.fr> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <39A754D0.834409BE@cybercable.fr>, Maxime Henrion writes:
>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

First: look at sysctl(3)

sysctl can read and set variables, so you pass it the "new" value and
a buffer for the "old" value.

--
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




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