mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 04:01:36 +01:00
Saner seq_file example adapted from kernel doc
This commit is contained in:
@@ -3,6 +3,8 @@ 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
|
||||
# => ab
|
||||
# => cd
|
||||
dd if='lkmc_seq_file_single' bs=1 count=3 skip=1
|
||||
# => b
|
||||
# => c
|
||||
|
||||
Reference in New Issue
Block a user