mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Add userland hello world sanity check
This commit is contained in:
@@ -9,6 +9,7 @@ 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)
|
||||
|
||||
7
kernel_module/user/hello.c
Normal file
7
kernel_module/user/hello.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
puts("hello");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user