SF_Ch_pstore: panic.c

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