1MOD_TIMER_PINNED(9) Driver Basics MOD_TIMER_PINNED(9)
2
3
4
6 mod_timer_pinned - modify a timerĀ“s timeout
7
9 int mod_timer_pinned(struct timer_list * timer, unsigned long expires);
10
12 timer
13 the timer to be modified
14
15 expires
16 new timeout in jiffies
17
19 mod_timer_pinned is a way to update the expire field of an active timer
20 (if the timer is inactive it will be activated) and not allow the timer
21 to be migrated to a different CPU.
22
23 mod_timer_pinned(timer, expires) is equivalent to:
24
25 del_timer(timer); timer->expires = expires; add_timer(timer);
26
28Kernel Hackers Manual 2.6. June 2019 MOD_TIMER_PINNED(9)