All of lore.kernel.org
 help / color / mirror / Atom feed
* del_timer[_sync]
@ 2004-09-22 11:41 Tobias DiPasquale
  0 siblings, 0 replies; only message in thread
From: Tobias DiPasquale @ 2004-09-22 11:41 UTC (permalink / raw)
  To: linux-net, netfilter, nf-devel, netfilter-failover

Hi all,

I have a timer that fires every $X seconds while the module is loaded.
I want to stop and remove the timer upon module unload. What is the
proper way to accomplish this?

In the module's __exit function, I am using this code to remove the timer:

[...]
del_timer_sync( &timer);
if (timer_pending( &timer))
       del_timer( &timer);
[...]

Is this the right way, or unnecessary overkill? I've seen multiple
ideas on how best to properly remove a timer. Thanks in advance! :)

-- 
[ Tobias DiPasquale ]
0x636f6465736c696e67657240676d61696c2e636f6d


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-22 11:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-22 11:41 del_timer[_sync] Tobias DiPasquale

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.