#include <linux/module.h><br />#include <linux/init.h><br />#define __license__ "GPL"<br /> <br />static int __init hello_init(void)<br />{<br /> printk("Hello ,cool world!
");<br /> return 0;<br />}<br /> <br />static void __exit hello_exit(void)<br />{<br /> printk("Goodbye,cruel world
");<br />}<br /> <br />MODULE_LICENSE(__license__);<br /> <br />module_init(hello_init);<br />module_exit(hello_exit);<br /> |
|