added cvsignore file
[my-code/kernel.git] / hello / hello.c
1 /*
2  * hello world kernel module
3  *
4  */
5
6 #include <linux/module.h>
7 #include <linux/config.h>
8 #include <linux/init.h>
9
10 //MODULE_LICENSE("GPL");
11
12 static int __init name_of_initialization_routine(void) {
13     printk(KERN_INFO "hello world, this is your kernel speaking\n");
14     return 0; 
15 }
16
17 static void __exit name_of_cleanup_routine(void) {
18   printk(KERN_INFO "good bye world!\n");
19 }
20
21 module_init(name_of_initialization_routine);
22 module_exit(name_of_cleanup_routine);