Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2007 19:54:12 +1100
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Michiel Overtoom <michiel@motoom.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Hooking a kernelmodule-function into a timer interrupt
Message-ID:  <20071121085412.GM50167@server.vk2pj.dyndns.org>
In-Reply-To: <200711200051.45420.michiel@motoom.org>
References:  <200711200051.45420.michiel@motoom.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--mojUlQ0s9EVzWg2t
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 20, 2007 at 12:51:45AM +0100, Michiel Overtoom wrote:
>second.  If would be nice if it gets called at the kern.clockrate.  I have=
 no=20
>clear idea how to proceed, I suspect I have to install a pointer to my=20
>conversion function into some list of functions which get called each cloc=
k=20
>tick, but I don't know where, or how. Any tips would be very welcome.

I presume that the exact rate is not critical.  My suggestion would be
to create a kernel thread (see kthread(9)) that uses a callout (see
timeout(9)) to wake it every tick.

--=20
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.

--mojUlQ0s9EVzWg2t
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHQ/I0/opHv/APuIcRAiV8AJ4lACTlkygljcbnETwHVwJ80abI3ACdHwvP
aAVJvIGCdkjebPOEaMXr2SU=
=td4p
-----END PGP SIGNATURE-----

--mojUlQ0s9EVzWg2t--



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