Call function on sysctl value change

Matthew Jakeman m.jakeman at lancaster.ac.uk
Wed Oct 15 14:32:57 UTC 2008


On Wednesday 15 October 2008, Dag-Erling Smørgrav wrote:
> Dag-Erling Smørgrav <des at des.no> writes:
> > Matthew Jakeman <m.jakeman at lancaster.ac.uk> 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

Thanks for that. It looks like just the job. Now exactly sure how I missed it 
in the first place but thanks...


More information about the freebsd-hackers mailing list