ARM: tizen_tm1_defconfig: Enable missing features related with CGROUPS
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / kernel / swap / ksyms / ksyms_module.c
1 /**
2  * @file ksyms/ksyms_module.c
3  * @author Alexander Aksenov <a.aksenov@samsung.com>
4  *
5  * @section LICENSE
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  *
21  * @section COPYRIGHT
22  *
23  * Copyright (C) Samsung Electronics, 2014
24  *
25  * @section DESCRIPTION
26  *
27  * SWAP symbols searching module initialization implementation.
28  */
29
30 #include "ksyms_init.h"
31
32 #include <linux/module.h>
33
34 /**
35  * @brief Init ksyms module.
36  *
37  * @return 0 on success.
38  */
39 int __init swap_ksyms_init(void)
40 {
41         int ret = ksyms_init();
42
43         printk(KERN_INFO "SWAP_KSYMS: Module initialized\n");
44
45         return ret;
46 }
47
48 /**
49  * @brief Exit ksyms module.
50  *
51  * @return Void.
52  */
53 void __exit swap_ksyms_exit(void)
54 {
55         ksyms_exit();
56
57         printk(KERN_INFO "SWAP_KSYMS: Module uninitialized\n");
58 }
59
60 module_init(swap_ksyms_init);
61 module_exit(swap_ksyms_exit);
62
63 MODULE_LICENSE("GPL");
64 MODULE_DESCRIPTION("SWAP ksyms module");
65 MODULE_AUTHOR("Vyacheslav Cherkashin <v.cherkashin@samaung.com>");