1MOD_TIMER_PINNED(9)              Driver Basics             MOD_TIMER_PINNED(9)
2
3
4

NAME

6       mod_timer_pinned - modify a timer's timeout
7

SYNOPSIS

9       int mod_timer_pinned(struct timer_list * timer, unsigned long expires);
10

ARGUMENTS

12       timer
13           the timer to be modified
14
15       expires
16           new timeout in jiffies
17

DESCRIPTION

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.       November 2011             MOD_TIMER_PINNED(9)
Impressum