Skip to content

Commit 410b662

Browse files
committed
Move panic and family docs to README
1 parent 50cb67e commit 410b662

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

kernel_module/README.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
.. link:hello.c[]
66
.. link:hello2.c[]
77
.. link:printk.c[]
8-
. Panic and friends
9-
.. link:panic.c[]
10-
.. link:oops.c[]
11-
.. link:dump_stack.c[]
12-
.. link:warn_on.c[]
138
. Modules
149
.. link:params.c[]
1510
.. link:vermagic.c[]

kernel_module/dump_stack.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#dump_stack */
2+
13
#include <linux/module.h>
24
#include <linux/kernel.h>
35

kernel_module/mmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* https://github.com/cirosantilli/linux-kernel-module-cheat#kthreads */
1+
/* https://github.com/cirosantilli/linux-kernel-module-cheat#mmap */
22

33
#include <linux/fs.h>
44
#include <linux/init.h>

kernel_module/oops.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#kernel-panic-and-oops */
2+
13
#include <linux/module.h>
24
#include <linux/kernel.h>
35

kernel_module/panic.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* https://github.com/cirosantilli/linux-kernel-module-cheat#kernel-panic-and-oops */
2+
3+
Kernel panic and oops
4+
15
#include <linux/module.h>
26
#include <linux/kernel.h>
37

kernel_module/warn_on.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/*
2-
Prints a backtrace.
3-
*/
1+
/* https://github.com/cirosantilli/linux-kernel-module-cheat#warn_on */
42

53
#include <linux/module.h>
64
#include <linux/kernel.h>

0 commit comments

Comments
 (0)