Lines Matching full:timer
44 * @TIMER_DEFERRABLE: A deferrable timer will work normally when the
46 * to service it; instead, the timer will be serviced when the CPU
47 * eventually wakes up with a subsequent non-deferrable timer.
49 * @TIMER_IRQSAFE: An irqsafe timer is executed with IRQ disabled and
57 * @TIMER_PINNED: A pinned timer will not be affected by any timer
59 * on which the timer was enqueued.
61 * Note: Because enqueuing of timers can migrate the timer from one
64 * function is invoked via mod_timer() or add_timer(). If the timer
93 * LOCKDEP and DEBUG timer interfaces.
95 void init_timer_key(struct timer_list *timer,
100 extern void init_timer_on_stack_key(struct timer_list *timer,
105 static inline void init_timer_on_stack_key(struct timer_list *timer, in init_timer_on_stack_key() argument
111 init_timer_key(timer, func, flags, name, key); in init_timer_on_stack_key()
136 * timer_setup - prepare a timer for first use
137 * @timer: the timer in question
138 * @callback: the function to call when timer expires
141 * Regular timer initialization should use either DEFINE_TIMER() above,
145 #define timer_setup(timer, callback, flags) \ argument
146 __init_timer((timer), (callback), (flags))
148 #define timer_setup_on_stack(timer, callback, flags) \ argument
149 __init_timer_on_stack((timer), (callback), (flags))
152 extern void destroy_timer_on_stack(struct timer_list *timer);
154 static inline void destroy_timer_on_stack(struct timer_list *timer) { } in destroy_timer_on_stack() argument
161 * timer_pending - is a timer pending?
162 * @timer: the timer in question
164 * timer_pending will tell whether a given timer is currently pending,
166 * to this timer, eg. interrupt contexts, or other CPUs on SMP.
168 * return value: 1 if the timer is pending, 0 if not.
170 static inline int timer_pending(const struct timer_list * timer) in timer_pending() argument
172 return !hlist_unhashed_lockless(&timer->entry); in timer_pending()
175 extern void add_timer_on(struct timer_list *timer, int cpu);
176 extern int del_timer(struct timer_list * timer);
177 extern int mod_timer(struct timer_list *timer, unsigned long expires);
178 extern int mod_timer_pending(struct timer_list *timer, unsigned long expires);
179 extern int timer_reduce(struct timer_list *timer, unsigned long expires);
182 * The jiffies value which is added to now, when there is no timer
183 * in the timer wheel:
187 extern void add_timer(struct timer_list *timer);
189 extern int try_to_del_timer_sync(struct timer_list *timer);
192 extern int del_timer_sync(struct timer_list *timer);