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 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