Subject: Re: Executing a kernel function at regular intervals?
To: Bruce Martin <BruceM@cat.co.za>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 08/02/1999 13:09:22
On Mon, Aug 02, 1999 at 10:32:23AM +0200, Bruce Martin wrote:
> I have a function in one of my device drivers that requires execution
> every 150ms. What kernel functions are available to set up this routine
> to be called every 150ms from kernel space?

You can try to use a timeout() callback. You'll need to set up a new
timeout call in the callback.
If you're not in interrupt context you could also use tsleep().
see timeout(9) and tsleep(9).

I don't know which degree of precision you can get with such a method
however. 

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--