init
This commit is contained in:
18
ass07/Makefile
Normal file
18
ass07/Makefile
Normal 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
|
Reference in New Issue
Block a user