Kernel timers infrastructure

Alexander Motin mav at FreeBSD.org
Mon Jul 25 18:54:20 UTC 2011


Hi.

On 25.07.2011 17:13, Filippo Sironi wrote:
> I'm working on a university project that's based on FreeBSD and I'm currently hacking the kernel... but I'm a complete newbie.
> My question is: what if I have to call a certain function 10 times per second?
> I've seen a bit of code regarding callout_* functions but I can't get through them. Is there anyone who can help me?

Have you read callout(9) manual page? That API is right if you need to 
call some function. Also in some cases (if you need to make your kernel 
thread wait for something) you may use sleep(9) API.

-- 
Alexander Motin


More information about the freebsd-hackers mailing list