kstrto: move doc to README

This commit is contained in:
Ciro Santilli
2018-07-05 02:01:17 +01:00
parent 6c241279a6
commit 237b27869e
5 changed files with 60 additions and 24 deletions

View File

@@ -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

View File

@@ -8,6 +8,7 @@ for test in \
/fops.sh \
/init_module.sh \
/ioctl.sh \
/kstrto.sh \
/mmap.sh \
/params.sh \
/procfs.sh \