1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_TIMER_H
13 #define _LINUX_TIMER_H
15 #include <linux/list.h>
16 #include <linux/spinlock.h>
17 #include <linux/stddef.h>
22 struct list_head entry;
23 unsigned long expires;
25 void (*function)(unsigned long);
28 struct tvec_t_base_s *base;
31 #define TIMER_INITIALIZER(_function, _expires, _data) { .function = (_function), .expires = (_expires), .data = (_data), .base = &boot_tvec_bases, }
33 #define DEFINE_TIMER(_name, _function, _expires, _data) struct timer_list _name = TIMER_INITIALIZER(_function, _expires, _data)
35 #define try_to_del_timer_sync(t) del_timer(t)
36 #define del_timer_sync(t) del_timer(t)
37 #define del_singleshot_timer_sync(t) del_timer_sync(t)