Initial commit

Signed-off-by: Jolan Rathelot <jrathelo@student.42nice.fr>
This commit is contained in:
Jolan Rathelot
2024-03-04 16:42:01 +01:00
commit b20836700d
9 changed files with 13654 additions and 0 deletions

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
KDIR ?= /lib/modules/`uname -r`/build
all: driver_and_interrupts.ko
driver_and_interrupts.ko: src/lib.rs
$(MAKE) -C $(KDIR) M=$$PWD LLVM=1
modules_install:
$(MAKE) -C $(KDIR) M=$$PWD LLVM=1 modules_install
clean:
$(MAKE) -C $(KDIR) M=$$PWD LLVM=1 clean
insmod:
insmod driver_and_interrupts.ko
rmmod:
rmmod driver_and_interrupts
.PHONY: all clean modules_install rmmod insmod