From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 15 14:32:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D0A4106568A for ; Wed, 15 Oct 2008 14:32:57 +0000 (UTC) (envelope-from m.jakeman@lancaster.ac.uk) Received: from pigwidgeon.lancs.ac.uk (pigwidgeon.lancs.ac.uk [148.88.0.67]) by mx1.freebsd.org (Postfix) with ESMTP id 5FB0F8FC2C for ; Wed, 15 Oct 2008 14:32:57 +0000 (UTC) (envelope-from m.jakeman@lancaster.ac.uk) Received: from mail02.lancs.ac.uk ([148.88.1.54]) by pigwidgeon.lancs.ac.uk with esmtp (Exim 4.60) (envelope-from ) id 1Kq77L-0004W1-2B for freebsd-hackers@freebsd.org; Wed, 15 Oct 2008 15:12:51 +0100 Received: from ina044000004.lancs.ac.uk ([148.88.224.46]) by mail02.lancs.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1Kq77K-0005AH-LH for freebsd-hackers@freebsd.org; Wed, 15 Oct 2008 15:12:50 +0100 From: Matthew Jakeman Organization: Lancaster University To: freebsd-hackers@freebsd.org Date: Wed, 15 Oct 2008 15:09:45 +0100 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <200810151343.28136.m.jakeman@lancaster.ac.uk> <8663nu0xd4.fsf@ds4.des.no> <861vyi0xby.fsf@ds4.des.no> In-Reply-To: <861vyi0xby.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810151509.45363.m.jakeman@lancaster.ac.uk> Subject: Re: Call function on sysctl value change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: m.jakeman@lancaster.ac.uk List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2008 14:32:57 -0000 On Wednesday 15 October 2008, Dag-Erling Sm=C3=B8rgrav wrote: > Dag-Erling Sm=C3=B8rgrav writes: > > Matthew Jakeman 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=20 in the first place but thanks...