SF_Ch_pstore: panic.c
File panic.c, 345 bytes (added by , 7 years ago) |
---|
Line | |
---|---|
1 | #include <linux/types.h> |
2 | #include <linux/kernel.h> |
3 | #include <linux/module.h> |
4 | |
5 | MODULE_LICENSE("GPL"); |
6 | |
7 | static int8_t* message = "Guhl caused a kernel panic!"; |
8 | |
9 | static int panic_init(void) { |
10 | panic(message); |
11 | return 0; |
12 | } |
13 | |
14 | static void panic_exit(void) { |
15 | printk("This will never happen\n"); |
16 | } |
17 | |
18 | module_init(panic_init); |
19 | module_exit(panic_exit); |
20 |