Hello,
vaishali paisal wrote:
yeah that's what i saw in all the codes related to timers but suppose i need to run around 50 timers simultaneously then it means i have to declare a variable for each of them.That is a bit uncomfortable !
Maybe you can use one of these fabulous inventions we call «arrays» ?
#define NB_TIMERS 50 struct timer_list timer[NB_TIMERS];
If you need 50 timers simultaneously, then you need them. No other way. Or maybe, you can think of changing the architecture of your kernel module to use a single timer ?
Thomas -- Thomas Petazzoni thomas.petazzoni@xxxxxxxx
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/