mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
adoc
Semi automated conversion, in part because Pandoc is kind of buggy for adoc:
Some of the commands were along the lines:
for f in *.md; do pandoc --atx-headers --base-header-level=3 -o ${f%.md}.adoc --wrap=none $f; done
sed -Ei '/\[\[.*\]\]/d' *.adoc
while read -r f; do cat $f; echo; done <f >g
This commit is contained in:
26
kernel_module/user/README.adoc
Normal file
26
kernel_module/user/README.adoc
Normal file
@@ -0,0 +1,26 @@
|
||||
= user
|
||||
|
||||
Userland C programs used to test our kernel modules.
|
||||
|
||||
`sh` programs are simpler, and installed by copying directly with an overlay.
|
||||
|
||||
C programs require cross compiling, but give us more control over system calls.
|
||||
|
||||
These programs can also be compiled and used on host.
|
||||
|
||||
. Standalone
|
||||
.. link:hello.c[]
|
||||
.. link:myinsmod.c[]
|
||||
.. link:myrmmod.c[]
|
||||
.. link:usermem.c[]
|
||||
... link:pagemap_dump.c[]
|
||||
.. inits
|
||||
.... link:sleep_forever.c[]
|
||||
.... link:poweroff.c[]
|
||||
.... link:init_dev_kmsg.c[]
|
||||
.. link:uio_read.c[]
|
||||
.. link:rand_check.c[]
|
||||
. Module tests
|
||||
.. link:anonymous_inode.c[]
|
||||
.. link:poll.c[]
|
||||
.. link:ioctl.c[]
|
||||
@@ -1,26 +0,0 @@
|
||||
# User
|
||||
|
||||
Userland C programs used to test our kernel modules.
|
||||
|
||||
`sh` programs are simpler, and installed by copying directly with an overlay.
|
||||
|
||||
C programs require cross compiling, but give us more control over system calls.
|
||||
|
||||
These programs can also be compiled and used on host.
|
||||
|
||||
1. Standalone
|
||||
1. [hello](hello.c)
|
||||
1. [myinsmod](myinsmod.c)
|
||||
1. [myrmmod](myrmmod.c)
|
||||
1. [usermem](usermem.c)
|
||||
1. [pagemap_dump](pagemap_dump.c)
|
||||
1. inits
|
||||
1. [sleep_forever](sleep_forever.c)
|
||||
1. [poweroff](poweroff.c)
|
||||
1. [init_dev_kmsg](init_dev_kmsg.c)
|
||||
1. [uio_read](uio_read.c)
|
||||
1. [rand_check](rand_check.c)
|
||||
1. Module tests
|
||||
1. [anonymous_inode](anonymous_inode.c)
|
||||
1. [poll](poll.c)
|
||||
1. [ioctl](ioctl.c)
|
||||
Reference in New Issue
Block a user