skeleton of hello module

This commit is contained in:
zeroway.lin
2016-07-12 09:48:24 +00:00
parent fe415b533b
commit abe987e24e

17
debug/hello.c Normal file
View File

@ -0,0 +1,17 @@
#include <linux/module.h>
#include <linux/init.h>
static int __init hello_init(void)
{
printk("%s, %d\n", __FUNCTION__, __LINE__);
return 0;
}
static void hello_exit (void)
{
printk("%s, %d\n", __FUNCTION__, __LINE__);
}
module_init(hello_init);
module_exit(hello_exit);
MODULE_LICENSE("GPL");