Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2008 13:43:28 +0100
From:      Matthew Jakeman <m.jakeman@lancaster.ac.uk>
To:        hackers@freebsd.org
Subject:   Call function on sysctl value change
Message-ID:  <200810151343.28136.m.jakeman@lancaster.ac.uk>

next in thread | raw e-mail | index | archive | help
Hi all,

I was wondering if it is possible to call a function when a sysctl value is 
changed. I have added a few sysctl int variables to the kernel and for some 
of these i only want certain values to be acceptable as input depending on 
some conditions. I would like to be able to call a function if possible, to 
validate the value entered via the sysctl command.

Thanks in advance
Matt



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