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 #define SWAP_TIMER 3
44
45 #define HD_TIMER 16
46 #define FLOPPY_TIMER 17
47 #define SCSI_TIMER 18
48 #define NET_TIMER 19
49 #define SOUND_TIMER 20
50 #define COPRO_TIMER 21
51
52 #define QIC02_TAPE_TIMER 22
53 #define MCD_TIMER 23
54
55 #define HD_TIMER2 24
56 #define GSCD_TIMER 25
57
58 #define DIGI_TIMER 29
59
60 struct timer_struct {
61 unsigned long expires;
62 void (*fn)(void);
63 };
64
65 extern unsigned long timer_active;
66 extern struct timer_struct timer_table[32];
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 struct timer_list {
82 struct timer_list *next;
83 struct timer_list *prev;
84 unsigned long expires;
85 unsigned long data;
86 void (*function)(unsigned long);
87 };
88
89 extern void add_timer(struct timer_list * timer);
90 extern int del_timer(struct timer_list * timer);
91
92 extern void it_real_fn(unsigned long);
93
94 extern inline void init_timer(struct timer_list * timer)
95 {
96 timer->next = NULL;
97 timer->prev = NULL;
98 }
99
100 #endif