Move files up on tree

This commit is contained in:
Ciro Santilli
2017-05-12 05:06:03 +01:00
parent 0a230e8620
commit 992783484b
9 changed files with 29 additions and 31 deletions

23
kernel_module/hello.c Normal file
View File

@@ -0,0 +1,23 @@
/*
Hello world module.
dmesg -c
insmod hello.ko
dmesg -c | grep 'hello init'
rmmod hello.ko
dmesg -c | grep 'hello cleanup'
*/
#include <linux/module.h>
#include <linux/kernel.h>
int init_module(void)
{
printk(KERN_INFO "hello init\n");
return 0;
}
void cleanup_module(void)
{
printk(KERN_INFO "hello cleanup\n");
}