This commit is contained in:
2024-08-07 12:33:08 +02:00
commit c3391de3ee
20 changed files with 31174 additions and 0 deletions

18
ass07/Makefile Normal file
View File

@ -0,0 +1,18 @@
obj-m += main.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
test: all
rmmod -f main || true
insmod main.ko
cat /sys/kernel/debug/fortytwo/foo
echo "bozo" > /sys/kernel/debug/fortytwo/foo
cat /sys/kernel/debug/fortytwo/foo
cat /sys/kernel/debug/fortytwo/id
echo -n cchauvet > /sys/kernel/debug/fortytwo/id
echo bozo > /sys/kernel/debug/fortytwo/id || true
cat /sys/kernel/debug/fortytwo/jiffies