74ace2aaf2f9dd50b45099b518591e0fc33a5b83
[my-code/kernel.git] / hello / hello.c
1 /* my first kernel driver :-) */
2
3 #include <linux/module.h>
4 #include <linux/kernel.h>
5
6 int init_module(void) {
7         printk(KERN_ALERT "hi hackbard, here is your kernel speaking! :)\n");
8         return 0;
9 }
10
11 void cleanup_module(void) {
12         printk(KERN_ALERT "bye hackbard ...\n");
13 }
14