2011-02-22 13:19:08 +00:00
|
|
|
/*
|
|
|
|
::license::
|
|
|
|
*/
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/module.h>
|
2011-02-23 07:35:54 +00:00
|
|
|
|
2011-02-23 07:48:02 +00:00
|
|
|
|
2011-02-23 07:35:54 +00:00
|
|
|
MODULE_LICENSE("GPL");
|
2011-02-23 07:44:32 +00:00
|
|
|
MODULE_AUTHOR("::author:: <::email::>");
|
2011-02-23 07:35:54 +00:00
|
|
|
MODULE_DESCRIPTION("::desc::");
|
|
|
|
|
2011-02-23 07:48:02 +00:00
|
|
|
|
2011-02-23 08:11:12 +00:00
|
|
|
static int __init module_initial(void)
|
2011-02-22 13:19:08 +00:00
|
|
|
{
|
|
|
|
printk(KERN_ALERT "Hello, world\n");
|
|
|
|
return 0;
|
|
|
|
}
|
2011-02-23 07:48:02 +00:00
|
|
|
|
2011-02-23 08:11:12 +00:00
|
|
|
static void module_cleanup(void)
|
2011-02-22 13:19:08 +00:00
|
|
|
{
|
|
|
|
printk(KERN_ALERT "Goodbye, cruel world\n");
|
|
|
|
}
|
2011-02-23 07:48:02 +00:00
|
|
|
|
|
|
|
|
2011-02-23 08:11:12 +00:00
|
|
|
module_init(module_initial);
|
|
|
|
module_exit(module_cleanup);
|