1 /* my first kernel driver :-) */
3 #include <linux/module.h>
4 #include <linux/kernel.h>
5 #include <linux/sched.h>
7 int init_module(void) {
8 printk(KERN_ALERT "hi hackbard, here is your kernel speaking! :)\n");
9 printk(KERN_ALERT "some info : %s has process id %i\n",current->comm,
14 void cleanup_module(void) {
15 printk(KERN_ALERT "bye hackbard ...\n");