Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 21:27:05 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        Filippo Sironi <filippo.sironi@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Kernel timers infrastructure
Message-ID:  <4E2DB579.7030804@FreeBSD.org>
In-Reply-To: <mailpost.1311604900.7586738.23483.mailing.freebsd.hackers@FreeBSD.cs.nctu.edu.tw>
References:  <mailpost.1311604900.7586738.23483.mailing.freebsd.hackers@FreeBSD.cs.nctu.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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