summaryrefslogtreecommitdiffstats
path: root/md/writeup/kernel_hello_world.md
diff options
context:
space:
mode:
Diffstat (limited to 'md/writeup/kernel_hello_world.md')
-rw-r--r--md/writeup/kernel_hello_world.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/md/writeup/kernel_hello_world.md b/md/writeup/kernel_hello_world.md
index f85af45..5f1e7e6 100644
--- a/md/writeup/kernel_hello_world.md
+++ b/md/writeup/kernel_hello_world.md
@@ -8,7 +8,7 @@ Compile minimal linux kernel module.
You need to create to files __Makefile__ and __hello_world.c__.
__Makefile__
-```
+```Makefile
obj-m += hello_world.o
KDIR ?= /lib/modules/$(shell uname -r)/build
@@ -22,7 +22,7 @@ clean:
__hello_world.c__
-```
+```c
//http://www.tldp.org/LDP/lkmpg/2.4/html/c147.htm
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h>
@@ -46,10 +46,10 @@ MODULE_LICENSE("GPL");
-##Compile
+## Compile
Now if you havent done so ... install kernel headers of kernel that your system have now. And everything should be there.
-```
+```sh
make
```