Files
linux-kernel-module-cheat/kernel_module/hello2.c
2017-07-13 13:06:25 +01:00

25 lines
350 B
C

/*
Hello world module 2.
Mostly to check that our build infrastructure can handle more than one module!
*/
#include <linux/module.h>
#include <linux/kernel.h>
MODULE_LICENSE("GPL");
static int myinit(void)
{
pr_info("hello2 init\n");
return 0;
}
static void myexit(void)
{
pr_info("hello2 exit\n");
}
module_init(myinit)
module_exit(myexit)