Networking Forums

Networking Forums > Computer Networking > Linux Networking > help linux timers

Reply
Thread Tools Display Modes

help linux timers

 
 
Giacomo
Guest
Posts: n/a

 
      10-29-2005, 09:07 AM
Good morning, in my kernel code, which handles timeouts for connection
tables in a linked list, i do:

inline void update_timer_of_state_entry(struct state_table *sttable)
{
if (sttable->state.state == ESTABLISHED)
mod_timer(&sttable->timer_statelist,
jiffies + HZ * state_lifetime);
else
mod_timer(&sttable->timer_statelist,
jiffies + HZ * setup_shutd_state_lifetime);
}

sttable is a structure which contains a struct timer_list.

In:

mod_timer(&sttable->timer_statelist,
jiffies + HZ * state_lifetime);

i update the timeout for the structures, so that when timer expires,
structure is removed from linked list.

The problem is that when state lifetime is long, let's say 2592000 for
instance, kernel goes in panic!

If the value is low, say 300, or higher 259200000, ok!

I suspect a problem of overflow .. is it possible?

What can be wrong?

Thanks a lot for any hint!

Giacomo.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble Installing Linux/Cisco VPN Client Has anyone had trouble compiling the linux cisco vpn client? Here is the output of the install script: # uname -rviosm Linux 2.4.22-1.2188.nptl #1 Wed Apr 21 20:19:18 EDT 2004 x86_64 x86_64 GNU/Linux JSH Linux Networking 4 07-02-2004 12:48 PM
Timers sidharth deshpande Linux Networking 2 03-05-2004 09:05 PM
Red Hot Linux v9.0 [2 DVDs]. Red Hot Linux v9.0 [3 CDs]. Redhat Enterprise Linux ES v3.0 REPACK [4 CDs]. Mandrake Linux 9.2 [3 CDs] -new ! TEL Linux Networking 0 12-01-2003 12:06 PM
Red Hot Linux v9.0 [2 DVDs]. Red Hot Linux v9.0 [3 CDs]. Redhat Enterprise Linux ES v3.0 REPACK [4 CDs]. Mandrake Linux 9.2 [3 CDs] - new ! TEL Linux Networking 0 11-29-2003 11:27 AM
Take note when implementing quotas for first timers. Chenome Linux Networking 0 07-10-2003 05:39 PM



1 2 3 4 5 6 7 8 9 10 11