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,9 @@
obj-m += eudyptula_1.o
KERNEL_VER ?= $(shell uname -r)
KERNEL_PATH ?= /lib/modules/$(KERNEL_VER)/build
all:
make -C $(KERNEL_PATH) M=$(PWD) modules
clean:
make -C $(KERNEL_PATH) M=$(PWD) clean

View file

@ -0,0 +1,22 @@
/*
* Eudyptula #1
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
int init_module(void)
{
printk(KERN_DEBUG "Ola Mundo!\n");
return 0;
}
void cleanup_module(void)
{
printk(KERN_DEBUG "Unloading exer 1! Goodbye!!!\n");
}
MODULE_LICENSE("GLP");
MODULE_AUTHOR("7e1cf379bd3d");

View file

@ -0,0 +1,5 @@
make
sudo insmod ./eudyptula_1.ko
cat /proc/modules | grep eudyptula
lsmod | grep eudyptula
sudo rmmod eudyptula_1