Date: Wed, 25 Aug 2010 13:03:52 +0100 From: Rui Paulo <rpaulo@FreeBSD.org> To: Sadish Kulasekere <sadishkr@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD Kernel Timers Message-ID: <FD750DF3-BB2B-495F-A211-A1FDE7E118CE@FreeBSD.org> In-Reply-To: <AANLkTi=EEDof1GB_-X2w9WSPVkWL=_Uwuy9j7ema%2BZag@mail.gmail.com> References: <AANLkTi=EEDof1GB_-X2w9WSPVkWL=_Uwuy9j7ema%2BZag@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FD750DF3-BB2B-495F-A211-A1FDE7E118CE>