separate modules into hello1 and hello2

hello1 handles all required operations while hello2 triggers them at
load and unload
This commit is contained in:
2024-12-01 18:58:07 +02:00
parent 9a78f98540
commit 19b922d4e4
4 changed files with 98 additions and 33 deletions

View File

@@ -1,7 +1,8 @@
ifneq ($(KERNELRELEASE),)
# kbuild part of makefile
obj-m := hello.o
obj-m := hello1.o hello2.o
ccflags-y := -I$(obj)/inc
else
# normal makefile
KDIR ?= /lib/modules/`uname -r`/build