summaryrefslogtreecommitdiff
path: root/md/writeup/kernel_hello_world.md
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2023-02-04 14:10:26 +0000
committerFreeArtMan <dos21h@gmail.com>2023-02-04 14:10:26 +0000
commit380f0fe40b1ab20790e75dac779e73667cc5ac72 (patch)
tree9fa3b9c93b58c966daa22f955282bc3c181d909a /md/writeup/kernel_hello_world.md
parentdf881efab146ca3ee61bf8936f948dd976fc4740 (diff)
downloadmd-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.tar.gz
md-content-380f0fe40b1ab20790e75dac779e73667cc5ac72.zip
Update all content to new pygmentize
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
```