Ciro Santilli a8fe6cce28 Add userland hello world sanity check 7 anos atrás
..
Makefile bb419de1fe Dont override CC for user make 7 anos atrás
README.md a8fe6cce28 Add userland hello world sanity check 7 anos atrás
anonymous_inode.c 1f1cf4b0bd Anonymous inode! 7 anos atrás
common.h 1f4f7faeba Document pagemap futher 7 anos atrás
hello.c a8fe6cce28 Add userland hello world sanity check 7 anos atrás
init_dev_kmsg.c 88cd83cd02 init_dev_kmsg 7 anos atrás
ioctl.c 1f1cf4b0bd Anonymous inode! 7 anos atrás
mmap.c 0bb3e8519a Host insane unsafe usage 7 anos atrás
myinsmod.c be105c7106 myinsmod takes params 7 anos atrás
myrmmod.c 95a1840683 Rename test to user 7 anos atrás
pagemap_dump.c 83411a0597 sketch uio 7 anos atrás
poll.c 0bb3e8519a Host insane unsafe usage 7 anos atrás
poweroff.c f96d4d55c9 Rm useless init.sh, init_hello and poweroff are not init specific, so rename them more generically 7 anos atrás
rand_check.c f3253d5109 rand_check pid 7 anos atrás
sleep_forever.c f96d4d55c9 Rm useless init.sh, init_hello and poweroff are not init specific, so rename them more generically 7 anos atrás
uio_read.c 879001563a Attempt uio with devmem. I give up on UIO for now 7 anos atrás
usermem.c 8d668d6ed3 Use busybox devmem 7 anos atrás
virt_to_phys_user.c 0bb3e8519a Host insane unsafe usage 7 anos atrás

README.md

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
    2. myinsmod
    3. myrmmod
    4. usermem
      1. pagemap_dump
    5. inits
      1. sleep_forever
      2. poweroff
      3. init_dev_kmsg
    6. uio_read
    7. rand_check
  2. Module tests
    1. anonymous_inode
    2. poll
    3. ioctl