Hooking a kernelmodule-function into a timer interrupt

Peter Jeremy peterjeremy at optushome.com.au
Wed Nov 21 00:54:17 PST 2007


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 
>clear idea how to proceed, I suspect I have to install a pointer to my 
>conversion function into some list of functions which get called each clock 
>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.

-- 
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20071121/5912b5fb/attachment.pgp


More information about the freebsd-hackers mailing list