Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[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/errno.h>
13 #include <linux/init.h>
14 #include <linux/module.h>
15
16 int     vserver_register_sysctl(void);
17 void    vserver_unregister_sysctl(void);
18
19
20 static int __init init_vserver(void)
21 {
22         int ret = 0;
23
24 #ifdef  CONFIG_VSERVER_DEBUG
25         vserver_register_sysctl();
26 #endif
27         return ret;
28 }
29
30
31 static void __exit exit_vserver(void)
32 {
33
34 #ifdef  CONFIG_VSERVER_DEBUG
35         vserver_unregister_sysctl();
36 #endif
37         return;
38 }
39
40
41 module_init(init_vserver);
42 module_exit(exit_vserver);
43