Lines Matching full:timer

26  * @TIMER_DEFERRABLE: A deferrable timer will work normally when the
28 * to service it; instead, the timer will be serviced when the CPU
29 * eventually wakes up with a subsequent non-deferrable timer.
31 * @TIMER_IRQSAFE: An irqsafe timer is executed with IRQ disabled and
39 * @TIMER_PINNED: A pinned timer will always expire on the CPU on which the
40 * timer was enqueued. When a particular CPU is required, add_timer_on()
68 * LOCKDEP and DEBUG timer interfaces.
70 void init_timer_key(struct timer_list *timer,
75 extern void init_timer_on_stack_key(struct timer_list *timer,
80 static inline void init_timer_on_stack_key(struct timer_list *timer, in init_timer_on_stack_key() argument
86 init_timer_key(timer, func, flags, name, key); in init_timer_on_stack_key()
111 * timer_setup - prepare a timer for first use
112 * @timer: the timer in question
113 * @callback: the function to call when timer expires
116 * Regular timer initialization should use either DEFINE_TIMER() above,
120 #define timer_setup(timer, callback, flags) \ argument
121 __init_timer((timer), (callback), (flags))
123 #define timer_setup_on_stack(timer, callback, flags) \ argument
124 __init_timer_on_stack((timer), (callback), (flags))
127 extern void destroy_timer_on_stack(struct timer_list *timer);
129 static inline void destroy_timer_on_stack(struct timer_list *timer) { } in destroy_timer_on_stack() argument
136 * timer_pending - is a timer pending?
137 * @timer: the timer in question
139 * timer_pending will tell whether a given timer is currently pending,
141 * to this timer, eg. interrupt contexts, or other CPUs on SMP.
143 * Returns: 1 if the timer is pending, 0 if not.
145 static inline int timer_pending(const struct timer_list * timer) in timer_pending() argument
147 return !hlist_unhashed_lockless(&timer->entry); in timer_pending()
150 extern void add_timer_on(struct timer_list *timer, int cpu);
151 extern int mod_timer(struct timer_list *timer, unsigned long expires);
152 extern int mod_timer_pending(struct timer_list *timer, unsigned long expires);
153 extern int timer_reduce(struct timer_list *timer, unsigned long expires);
156 * The jiffies value which is added to now, when there is no timer
157 * in the timer wheel:
161 extern void add_timer(struct timer_list *timer);
162 extern void add_timer_local(struct timer_list *timer);
163 extern void add_timer_global(struct timer_list *timer);
165 extern int try_to_del_timer_sync(struct timer_list *timer);
166 extern int timer_delete_sync(struct timer_list *timer);
167 extern int timer_delete(struct timer_list *timer);
168 extern int timer_shutdown_sync(struct timer_list *timer);
169 extern int timer_shutdown(struct timer_list *timer);
172 * del_timer_sync - Delete a pending timer and wait for a running callback
173 * @timer: The timer to be deleted
180 * * %0 - The timer was not pending
181 * * %1 - The timer was pending and deactivated
183 static inline int del_timer_sync(struct timer_list *timer) in del_timer_sync() argument
185 return timer_delete_sync(timer); in del_timer_sync()
189 * del_timer - Delete a pending timer
190 * @timer: The timer to be deleted
197 * * %0 - The timer was not pending
198 * * %1 - The timer was pending and deactivated
200 static inline int del_timer(struct timer_list *timer) in del_timer() argument
202 return timer_delete(timer); in del_timer()