1/****************************************************************************
2 ****************************************************************************
3 ***
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.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_TIMER_H
13#define _LINUX_TIMER_H
14
15#include <linux/list.h>
16#include <linux/spinlock.h>
17#include <linux/stddef.h>
18
19struct tvec_t_base_s;
20
21struct timer_list {
22 struct list_head entry;
23 unsigned long expires;
24
25 void (*function)(unsigned long);
26 unsigned long data;
27
28 struct tvec_t_base_s *base;
29};
30
31#define TIMER_INITIALIZER(_function, _expires, _data) {   .function = (_function),   .expires = (_expires),   .data = (_data),   .base = &boot_tvec_bases,   }
32
33#define DEFINE_TIMER(_name, _function, _expires, _data)   struct timer_list _name =   TIMER_INITIALIZER(_function, _expires, _data)
34
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)
38
39struct hrtimer;
40
41#endif
42