reorganize dir

Signed-off-by: Mia Steinkirch <mia.steinkirch@gmail.com>
This commit is contained in:
Mia Steinkirch 2019-10-11 04:29:17 -07:00
parent 1b6f705e7c
commit a8e71c50db
276 changed files with 23954 additions and 0 deletions

View file

@ -0,0 +1,8 @@
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
obj-m += task-01.o
all:
make -C $(KERNEL_SRC) M=$(PWD) modules
clean:
make -C $(KERNEL_SRC) M=$(PWD) clean

View file

@ -0,0 +1,15 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
static int __init setup(void) {
printk(KERN_DEBUG "Hello World!");
return 0;
}
static void __exit teardown(void) {
}
module_init(setup);
module_exit(teardown);