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 #define BLANK_TIMER 0
37 #define BEEP_TIMER 1
38 #define RS_TIMER 2
39
40 #define HD_TIMER 16
41 #define FLOPPY_TIMER 17
42 #define SCSI_TIMER 18
43 #define NET_TIMER 19
44 #define SOUND_TIMER 20
45 #define COPRO_TIMER 21
46
47 #define QIC02_TAPE_TIMER 22
48 #define MCD_TIMER 23
49
50 #define HD_TIMER2 24
51
52 struct timer_struct {
53 unsigned long expires;
54 void (*fn)(void);
55 };
56
57 extern unsigned long timer_active;
58 extern struct timer_struct timer_table[32];
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73 struct timer_list {
74 struct timer_list *next;
75 struct timer_list *prev;
76 unsigned long expires;
77 unsigned long data;
78 void (*function)(unsigned long);
79 };
80
81 extern void add_timer(struct timer_list * timer);
82 extern int del_timer(struct timer_list * timer);
83
84 extern inline void init_timer(struct timer_list * timer)
85 {
86 timer->next = NULL;
87 timer->prev = NULL;
88 }
89
90 #endif