Re: Call function on sysctl value change

2008-10-15 Thread Matthew Jakeman
On Wednesday 15 October 2008, Dag-Erling Smørgrav wrote: > Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes: > > Matthew Jakeman <[EMAIL PROTECTED]> writes: > > > I was wondering if it is possible to call a function when a sysctl > > > value is changed. > > > > grep -r SYSCTL_ADD_PROC /usr/src/sys >

Re: Call function on sysctl value change

2008-10-15 Thread Dag-Erling Smørgrav
Matthew Jakeman <[EMAIL PROTECTED]> writes: > I was wondering if it is possible to call a function when a sysctl value is > changed. grep -r SYSCTL_ADD_PROC /usr/src/sys DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org ma

Re: Call function on sysctl value change

2008-10-15 Thread Oliver Fromme
Matthew Jakeman wrote: > 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 b

Re: Call function on sysctl value change

2008-10-15 Thread Dag-Erling Smørgrav
Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes: > Matthew Jakeman <[EMAIL PROTECTED]> writes: > > I was wondering if it is possible to call a function when a sysctl value is > > changed. > grep -r SYSCTL_ADD_PROC /usr/src/sys even better: 'man SYSCTL_ADD_PROC' will answer all your questions. DES

Call function on sysctl value change

2008-10-15 Thread Matthew Jakeman
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