This commit is contained in:
Imbus 2026-02-24 13:49:54 +01:00
parent 04b82dab30
commit 0657191cf0
5 changed files with 143 additions and 0 deletions

11
ioctl_chardev/Makefile Normal file
View file

@ -0,0 +1,11 @@
obj-m = my-ioctl.o
all: test.elf
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
rm test.elf
test.elf: test.c
$(CC) test.c -o test.elf