1DEL_TIMER_SYNC(9) Driver Basics DEL_TIMER_SYNC(9)
2
3
4
6 del_timer_sync - deactivate a timer and wait for the handler to finish.
7
9 int del_timer_sync(struct timer_list * timer);
10
12 timer
13 the timer to be deactivated
14
16 This function only differs from del_timer on SMP: besides deactivating
17 the timer it also makes sure the handler has finished executing on
18 other CPUs.
19
21 Callers must prevent restarting of the timer, otherwise this function
22 is meaningless. It must not be called from interrupt contexts. The
23 caller must not hold locks which would prevent completion of the
24 timer's handler. The timer's handler must not call add_timer_on. Upon
25 exit the timer is not queued and the handler is not running on any CPU.
26
27 The function returns whether it has deactivated a pending timer or not.
28
30Kernel Hackers Manual 2.6. November 2011 DEL_TIMER_SYNC(9)