| Linux kernel & device driver programming |
| [ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] |
1 /*
2 * $Id: hello.c,v 1.5 2004/10/26 03:32:21 corbet Exp $
3 */
4
5 #include <linux/kernel.h>
6 #include <linux/init.h>
7 #include <linux/module.h>
8
9 MODULE_LICENSE("Dual BSD/GPL");
10
11 static int hello_init(void)
12 {
13 printk(KERN_ALERT "Hello, world\n");
14 return 0;
15 }
16
17 static void hello_exit(void)
18 {
19 printk(KERN_ALERT "Goodbye, cruel world\n");
20 }
21
22 module_init(hello_init);
23 module_exit(hello_exit);
24
| This page was automatically generated by the LXR engine. |