Files
linux-kernel-module-cheat/kernel_module/user
Ciro Santilli 254c8bf42e 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
2018-02-14 04:26:07 +00:00
..
2017-06-13 09:44:29 +01:00
2017-08-04 08:21:20 +01:00
2017-10-08 22:19:48 +01:00
2017-10-01 22:27:25 +01:00
2017-06-13 09:44:29 +01:00
2017-08-04 07:45:13 +01:00
2017-08-03 04:37:50 +01:00
2017-06-15 07:54:38 +01:00
2017-06-12 06:59:19 +01:00
2017-08-05 12:32:24 +01:00
2017-08-03 04:37:50 +01:00
2017-10-07 07:21:08 +01:00
2018-02-14 04:26:07 +00:00
2017-08-08 11:56:01 +01:00
2017-08-03 04:37:50 +01:00

= 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[]