Skip to content

Commit efc37fa

Browse files
committed
Move link doc of printk related modules to README
1 parent 410b662 commit efc37fa

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

kernel_module/README.adoc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
= kernel_module
22

3-
. link:module_init.c[]
4-
. Debugging
5-
.. link:hello.c[]
6-
.. link:hello2.c[]
7-
.. link:printk.c[]
83
. Modules
94
.. link:params.c[]
105
.. link:vermagic.c[]
116
.. link:vermagic_fail.c[]
7+
.. link:module_init.c[]
128
.. link:module_info.c[]
139
.. Module dependencies
1410
... link:dep.c[]

kernel_module/hello.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
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 */
102

113
#include <linux/module.h>
124
#include <linux/kernel.h>

kernel_module/hello2.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
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 */
62

73
#include <linux/module.h>
84
#include <linux/kernel.h>

kernel_module/myprintk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* https://github.com/cirosantilli/linux-kernel-module-cheat#pr_debug */
2+
13
#include <linux/module.h>
24
#include <linux/kernel.h>
35

0 commit comments

Comments
 (0)