diff options
Diffstat (limited to 'src/module/module.c')
-rw-r--r-- | src/module/module.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/module/module.c b/src/module/module.c new file mode 100644 index 0000000..43edb8c --- /dev/null +++ b/src/module/module.c @@ -0,0 +1,21 @@ +#include <linux/init.h> +#include <linux/module.h> +#include <linux/printk.h> + +static int __init init(void) +{ + pr_info("Hello World!\n"); + return 0; +} + +static void __exit exit(void) +{ + pr_info("Goodbye World!\n"); +} + +module_init(init); +module_exit(exit); + +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Kartofen"); +MODULE_DESCRIPTION("A simple keylogger kernel module"); |