Hardware Design: SIE
Sign in or create your account | Project List | Help
Hardware Design: SIE Git Source Tree
Root/
| 1 | /* Necessary includes for drivers */ |
| 2 | #include <linux/init.h> |
| 3 | #include <linux/module.h> |
| 4 | #include <linux/kernel.h> /* printk() */ |
| 5 | |
| 6 | MODULE_LICENSE("GPL"); |
| 7 | |
| 8 | static int hello_init(void) { |
| 9 | printk("Hello world!. init\n"); |
| 10 | return 0; |
| 11 | } |
| 12 | |
| 13 | static void hello_exit(void) { |
| 14 | printk("Bye, cruel world. exit\n"); |
| 15 | } |
| 16 | |
| 17 | module_init(hello_init); |
| 18 | module_exit(hello_exit) |
Branches:
master
