ioctl: move doc to README

This commit is contained in:
Ciro Santilli
2018-07-01 17:44:38 +01:00
parent 084e3faf5a
commit d840b0cb65
7 changed files with 107 additions and 51 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/sh
set -e
f=/sys/kernel/debug/lkmc_ioctl
insmod /ioctl.ko
/ioctl.out /sys/kernel/debug/lkmc_ioctl
[ "$(/ioctl.out "$f" 0 1)" = 2 ]
[ "$(/ioctl.out "$f" 1 1 1)" = '2 0' ]
rmmod ioctl