Brian J. McGovern wrote:
>
> Based on my reading of several device driver books, I am aware of a mechanism
> to be able to have the kernel re-enter a particular function after a certain
> time period is past. Using this system, you should be able to do your
> poll, and then implement the required code so the function will be restarted
> some time in the future, and then it should terminate.
the calls you want are
timeout(9)
untimeout(9)
tsleep(9)
and wakeup(9)
not all have man pages yet