On Fri, 06 May 2005 Thomas Petazzoni wrote :
>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
well thanks a lot ,me too think that is the only way out.But i have seen the Bluez code hci_conn.c in /usr/src/`uname -r`/net/bluetooth which uses multiple timers and doesn't do it this way.So i was thinking may be there is some other way out or i have misunderstood something.
Regards
vaishali