Home | History | Annotate | Download | only in linux

Lines Matching refs:timer

33 void fastcall init_timer(struct timer_list * timer);
35 static inline void setup_timer(struct timer_list * timer,
39 timer->function = function;
40 timer->data = data;
41 init_timer(timer);
45 * timer_pending - is a timer pending?
46 * @timer: the timer in question
48 * timer_pending will tell whether a given timer is currently pending,
50 * to this timer, eg. interrupt contexts, or other CPUs on SMP.
52 * return value: 1 if the timer is pending, 0 if not.
54 static inline int timer_pending(const struct timer_list * timer)
56 return timer->entry.next != NULL;
59 extern void add_timer_on(struct timer_list *timer, int cpu);
60 extern int del_timer(struct timer_list * timer);
61 extern int __mod_timer(struct timer_list *timer, unsigned long expires);
62 extern int mod_timer(struct timer_list *timer, unsigned long expires);
67 * add_timer - start a timer
68 * @timer: the timer to be added
71 * timer interrupt at the ->expires point in the future. The
74 * The timer's ->expires, ->function (and if the handler uses it, ->data)
78 * timer tick.
80 static inline void add_timer(struct timer_list *timer)
82 BUG_ON(timer_pending(timer));
83 __mod_timer(timer, timer->expires);
87 extern int try_to_del_timer_sync(struct timer_list *timer);
88 extern int del_timer_sync(struct timer_list *timer);