mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
split kernel module api docs to README
This commit is contained in:
15
rootfs_overlay/params.sh
Normal file
15
rootfs_overlay/params.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
d=/sys/module/params/parameters
|
||||
i="${d}/i"
|
||||
j="${d}/j"
|
||||
insmod /params.ko
|
||||
# dmesg => 0 0
|
||||
[ "$(cat "$i")" = '1 0' ]
|
||||
printf 1 > "$i"
|
||||
# dmesg => 1 0
|
||||
rmmod params
|
||||
|
||||
insmod /params.ko i=1 j=1
|
||||
# dmesg => 1 1
|
||||
rmmod params
|
||||
@@ -7,6 +7,7 @@ for test in \
|
||||
/fops.sh \
|
||||
/ioctl.sh \
|
||||
/mmap.sh \
|
||||
/params.sh \
|
||||
/procfs.sh \
|
||||
/seq_file.sh \
|
||||
/seq_file_single_open.sh \
|
||||
|
||||
Reference in New Issue
Block a user