mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 20:14:27 +01:00
seq_file, printk to pr_info, disk persistency
This commit is contained in:
8
rootfs_overlay/seq_file_single.sh
Executable file
8
rootfs_overlay/seq_file_single.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -ex
|
||||
insmod /seq_file_single.ko
|
||||
cd /sys/kernel/debug
|
||||
cat 'lkmc_seq_file_single'
|
||||
# => abcd
|
||||
dd if='lkmc_seq_file_single' bs=1 skip=2
|
||||
# => cd
|
||||
Reference in New Issue
Block a user