This source file includes following definitions.
- init_timer
1 #ifndef _LINUX_TIMER_H
2 #define _LINUX_TIMER_H
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 #define BLANK_TIMER 0
41 #define BEEP_TIMER 1
42 #define RS_TIMER 2
43
44 #define HD_TIMER 16
45 #define FLOPPY_TIMER 17
46 #define SCSI_TIMER 18
47 #define NET_TIMER 19
48 #define SOUND_TIMER 20
49 #define COPRO_TIMER 21
50
51 #define QIC02_TAPE_TIMER 22
52 #define MCD_TIMER 23
53
54 #define HD_TIMER2 24
55 #define GSCD_TIMER 25
56 #define OPTCD_TIMER 26
57
58 struct timer_struct {
59 unsigned long expires;
60 void (*fn)(void);
61 };
62
63 extern unsigned long timer_active;
64 extern struct timer_struct timer_table[32];
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79 struct timer_list {
80 struct timer_list *next;
81 struct timer_list *prev;
82 unsigned long expires;
83 unsigned long data;
84 void (*function)(unsigned long);
85 };
86
87 extern void add_timer(struct timer_list * timer);
88 extern int del_timer(struct timer_list * timer);
89
90 extern void it_real_fn(unsigned long);
91
92 extern inline void init_timer(struct timer_list * timer)
93 {
94 timer->next = NULL;
95 timer->prev = NULL;
96 }
97
98 #endif