regarding timeout/untimeout kernel functions

Bruce M Simpson bms at spc.org
Thu Jul 22 20:20:59 PDT 2004


On Thu, Jul 22, 2004 at 09:56:00PM -0500, Dan Nelson wrote:
> You could also use the kqueue/kevent functions to queue up an arbitrary
> number of timer events in a single process.

I wrote a small routing daemon which uses kqueue/kevent to fire a period
timer on a quantum which in turn calls into a timer list module I wrote,
which can either use the kevent quantum, or multiplex on a single itimer.

It's pretty basic and probably not foolproof, but it seems to work well.

BMS


More information about the freebsd-hackers mailing list