mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
kstrto: move doc to README
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
f=/sys/kernel/debug/lkmc_kstrto
|
||||
insmod /kstrto.ko
|
||||
cd /sys/kernel/debug
|
||||
echo 1234 > lkmc_kstrto
|
||||
# 1234
|
||||
echo foobar > lkmc_kstrto
|
||||
# -22
|
||||
printf 123 > "$f"
|
||||
[ "$(cat "$f")" = 124 ]
|
||||
echo foobar > "$f" && exit 1
|
||||
rmmod kstrto
|
||||
|
||||
@@ -8,6 +8,7 @@ for test in \
|
||||
/fops.sh \
|
||||
/init_module.sh \
|
||||
/ioctl.sh \
|
||||
/kstrto.sh \
|
||||
/mmap.sh \
|
||||
/params.sh \
|
||||
/procfs.sh \
|
||||
|
||||
Reference in New Issue
Block a user