mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-07-25 15:55:25 -04:00
reorganize dir
Signed-off-by: Mia Steinkirch <mia.steinkirch@gmail.com>
This commit is contained in:
parent
1b6f705e7c
commit
a8e71c50db
276 changed files with 23954 additions and 0 deletions
|
@ -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
|
|
@ -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");
|
|
@ -0,0 +1,5 @@
|
|||
make
|
||||
sudo insmod ./eudyptula_1.ko
|
||||
cat /proc/modules | grep eudyptula
|
||||
lsmod | grep eudyptula
|
||||
sudo rmmod eudyptula_1
|
Loading…
Add table
Add a link
Reference in a new issue