File tree Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Original file line number Diff line number Diff line change 1
1
= kernel_module
2
2
3
- . link:module_init.c[]
4
- . Debugging
5
- .. link:hello.c[]
6
- .. link:hello2.c[]
7
- .. link:printk.c[]
8
3
. Modules
9
4
.. link:params.c[]
10
5
.. link:vermagic.c[]
11
6
.. link:vermagic_fail.c[]
7
+ .. link:module_init.c[]
12
8
.. link:module_info.c[]
13
9
.. Module dependencies
14
10
... link:dep.c[]
Original file line number Diff line number Diff line change 1
- /*
2
- Hello world module.
3
-
4
- dmesg -c
5
- insmod hello.ko
6
- dmesg -c | grep 'hello init'
7
- rmmod hello.ko
8
- dmesg -c | grep 'hello exit'
9
- */
1
+ /* https://github.com/cirosantilli/linux-kernel-module-cheat#getting-started-natively */
10
2
11
3
#include <linux/module.h>
12
4
#include <linux/kernel.h>
Original file line number Diff line number Diff line change 1
- /*
2
- Hello world module 2.
3
-
4
- Mostly to check that our build infrastructure can handle more than one module!
5
- */
1
+ /* https://github.com/cirosantilli/linux-kernel-module-cheat#getting-started-natively */
6
2
7
3
#include <linux/module.h>
8
4
#include <linux/kernel.h>
Original file line number Diff line number Diff line change
1
+ /* https://github.com/cirosantilli/linux-kernel-module-cheat#pr_debug */
2
+
1
3
#include <linux/module.h>
2
4
#include <linux/kernel.h>
3
5
You can’t perform that action at this time.
0 commit comments