Subject: Re: How to add a "dynamic" sysctl (NetBSD 1.6.2)?
To: None <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 08/08/2005 22:00:18
In article <email@example.com>,
Aliaxandr W. Pinchuk <firstname.lastname@example.org> wrote:
>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.