Saner seq_file example adapted from kernel doc

This commit is contained in:
Ciro Santilli
2017-07-14 10:31:18 +01:00
parent 8058ee9f2b
commit f82c058eb6
4 changed files with 104 additions and 35 deletions

View File

@@ -11,9 +11,17 @@ cat 'lkmc_seq_file'
# => 2
cat 'lkmc_seq_file'
# => 3
# => 4
# => 5
# => 0
# => 1
# => 2
# TODO understand, why does this print nothing?
dd if='lkmc_seq_file' bs=1 count=2 skip=2
dd if='lkmc_seq_file' bs=1 count=2 skip=0 status=none
# => 0
dd if='lkmc_seq_file' bs=1 count=4 skip=0 status=none
# => 0
# => 1
dd if='lkmc_seq_file' bs=1 count=2 skip=2 status=none
# => 1
dd if='lkmc_seq_file' bs=4 count=1 skip=0 status=none
# => 0
# => 1