hi all, > Hello. I have written a netfilter kernel module and I want some code > to run periodically, ie a function in the module should run every 5 > seconds. > > I have researched and implemented a kernel work queue however this > does not have the capability of being periodic from my assessment. > Can anyone point me in the right direction? > i've read all messages in this thread and seems the only way proposed is using timers... i've implemented a very similar kernel module, using netfilter to track connections, and i created a kernel tread that detect inactivity in a loop, and sleeping for a while in between. this solutions will work for you? :) or maybe i'm doing a very ugly thing? :( topi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/