netdev
[Top] [All Lists]

del_timer_sync() synchronization rules

To: <linux-kernel@xxxxxxxxxxxxxxx>
Subject: del_timer_sync() synchronization rules
From: "Mendelson, Tsippy" <tsippy.mendelson@xxxxxxxxx>
Date: Wed, 14 Jan 2004 12:38:30 +0200
Cc: <netdev@xxxxxxxxxxx>, "iJR ICGJ SW Dev Linux ANS" <ijr.icgj.sw.dev.linux.ans@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
Thread-index: AcPajPtbRzUYxo6ZRi2ctZZTwDQbqA==
Thread-topic: del_timer_sync() synchronization rules
In the header of the del_timer_sync() function in 2.4.x kernels it says:

* Caller must disable by some means restarting the timer
* for new.

In kernel 2.6.1 the header says:

* Synchronization rules: callers must prevent restarting of the timer,
* otherwise this function is meaningless.

Does anyone know what this is about?

Does this imply that a timer that restarts itself must use some other means
to prevent it from restarting once del_timer_sync was called? (like some kind 
of terminate flag)

If so - isn't this just what dell_timer_sync is supposed to handle properly?
If not - then what kind of scenario is this referring to?

Tsippy  


<Prev in Thread] Current Thread [Next in Thread>
  • del_timer_sync() synchronization rules, Mendelson, Tsippy <=