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 _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"