This source file includes following definitions.
- ddi_init
1
2
3
4
5
6
7
8
9
10
11
12
13 #include <asm/segment.h>
14 #include <asm/system.h>
15 #include <linux/types.h>
16 #include <linux/config.h>
17 #include <linux/kernel.h>
18 #include <linux/sched.h>
19 #include <linux/string.h>
20 #include <linux/mm.h>
21 #include <linux/socket.h>
22 #include <linux/ddi.h>
23 #include <linux/interrupt.h>
24
25 #include "socket/dev.h"
26
27
28 #undef DDI_DEBUG
29 #ifdef DDI_DEBUG
30 # define PRINTK(x) printk x
31 #else
32 # define PRINTK(x)
33 #endif
34
35
36 extern struct ddi_proto protocols[];
37
38
39
40
41
42
43
44
45 void ddi_init(void)
46 {
47 struct ddi_proto *pro;
48
49 PRINTK (("DDI: Starting up!\n"));
50
51
52 pro = protocols;
53 while (pro->name != NULL)
54 {
55 (*pro->init)(pro);
56 pro++;
57 }
58
59 dev_init();
60
61 bh_base[INET_BH].routine = inet_bh;
62
63
64 }