Commit | Line | Data |
---|---|---|
1 | #define MODULE | |
2 | #include <linux/module.h> | |
3 | ||
4 | int init_module (void) /* Loads a module in the kernel */ | |
5 | { | |
6 | printk("Hello kernel\n"); | |
7 | return 0; | |
8 | } | |
9 | ||
10 | void cleanup_module(void) /* Removes module from kernel */ | |
11 | { | |
12 | printk("GoodBye Kernel\n"); | |
13 | } | |
14 | ||
15 |