vserver 1.9.5.x5
[linux-2.6.git] / kernel / vserver / init.c
1 /*
2  *  linux/kernel/init.c
3  *
4  *  Virtual Server Init
5  *
6  *  Copyright (C) 2004-2005  Herbert Pƶtzl
7  *
8  *  V0.01  basic structure
9  *
10  */
11
12 #include <linux/config.h>
13 #include <linux/errno.h>
14 #include <linux/init.h>
15 #include <linux/module.h>
16
17 int     vserver_register_sysctl(void);
18 void    vserver_unregister_sysctl(void);
19
20
21 static int __init init_vserver(void)
22 {
23         int ret = 0;
24
25 #ifdef  CONFIG_VSERVER_DEBUG
26         vserver_register_sysctl();
27 #endif
28         return ret;
29 }
30
31
32 static void __exit exit_vserver(void)
33 {
34
35 #ifdef  CONFIG_VSERVER_DEBUG
36         vserver_unregister_sysctl();
37 #endif
38         return;
39 }
40
41
42 module_init(init_vserver);
43 module_exit(exit_vserver);
44