FreeBSD Kernel Timers

Rui Paulo rpaulo at FreeBSD.org
Wed Aug 25 12:23:12 UTC 2010


On 25 Aug 2010, at 12:31, Sadish Kulasekere wrote:

> Hi,
> 
> Does anyone know how to create a timer in the kernel? I want to execute a
> function after 1s and 3s and I want to create multiple instances of the
> timer. The requirement here is to invoke a function after receiving a SYN
> packet and then after 10s remove the perticular timer corresponding to that
> SYN. This should be done for each SYN received.

Read the callout API man page: callout(9).

Regards,
--
Rui Paulo




More information about the freebsd-net mailing list