kernel module main file added
This commit is contained in:
parent
7eccf11f60
commit
f0cd6fc767
|
@ -0,0 +1,17 @@
|
||||||
|
/*
|
||||||
|
::license::
|
||||||
|
*/
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
MODULE_LICENSE("Dual BSD/GPL");
|
||||||
|
static int module_init(void)
|
||||||
|
{
|
||||||
|
printk(KERN_ALERT "Hello, world\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
static void module_exit(void)
|
||||||
|
{
|
||||||
|
printk(KERN_ALERT "Goodbye, cruel world\n");
|
||||||
|
}
|
||||||
|
module_init(module_init);
|
||||||
|
module_exit(module_exit);
|
Loading…
Reference in New Issue