Host insane unsafe usage

This commit is contained in:
Ciro Santilli
2017-08-03 04:32:06 +01:00
parent dfc4981e46
commit 0bb3e8519a
13 changed files with 85 additions and 54 deletions

View File

@@ -1,13 +1,17 @@
#include <linux/module.h>
#include <linux/kernel.h>
int init_module(void)
static int myinit(void)
{
printk(KERN_INFO "init_module\n");
pr_info("hello init\n");
return 0;
}
void cleanup_module(void)
static void myexit(void)
{
printk(KERN_INFO "cleanup_module\n");
pr_info("hello exit\n");
}
module_init(myinit)
module_exit(myexit)
MODULE_LICENSE("GPL");