source:
svn/trunk/zas_dstar/hal/os/src/module/hello.c
| Last change on this file was 2, checked in by jglee, 11 years ago | |
|---|---|
| File size: 289 bytes | |
| Rev | Line | |
|---|---|---|
| [2] | 1 | #include <linux/init.h> |
| 2 | #include <linux/module.h> | |
| 3 | #include <linux/kernel.h> | |
| 4 | ||
| 5 | MODULE_LICENSE("Dual BSD/GPL"); | |
| 6 | ||
| 7 | ||
| 8 | static int hello_init(void) | |
| 9 | { | |
| 10 | printk("hello world\n"); | |
| 11 | return 0; | |
| 12 | } | |
| 13 | ||
| 14 | static void hello_exit(void) | |
| 15 | { | |
| 16 | printk("good bye\n"); | |
| 17 | } | |
| 18 | ||
| 19 | module_init(hello_init); | |
| 20 | module_exit(hello_exit); | |
| 21 |
Note: See TracBrowser
for help on using the repository browser.
