Subject: Re: How to add a "dynamic" sysctl (NetBSD 1.6.2)?
To: None <>
From: Christos Zoulas <>
List: tech-kern
Date: 08/08/2005 22:00:18
In article <>,
Aliaxandr W. Pinchuk <> wrote:
>Hello, friends!
>I have done some kernel module, and I want to change his perameters by sysctl 
>(add new level under vfs level) when only this module is loaded (when 
>unloaded, added entries must be invisible - ala FreeBSD's KLD). That is to 
>say, use the following command to change my parameter:
>#sysctl -w vfs.my_sysctl_level.my_param_max=1024
>Would someone like to tell me how to implement it?

I don't think that you can do it with 1.6.2 easily. The best way is to
use 2.0+. There many examples in the source tree there.