You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
471 B
23 lines
471 B
15 years ago
|
|
||
|
#include <linux/kernel.h>
|
||
|
#include <linux/init.h>
|
||
|
#include <linux/module.h>
|
||
|
|
||
|
MODULE_DESCRIPTION("My kernel module");
|
||
|
MODULE_AUTHOR("%{AUTHOR} (%{EMAIL})");
|
||
|
MODULE_LICENSE("$LICENSE$");
|
||
|
|
||
|
static int %{APPNAMELC}_init_module(void)
|
||
|
{
|
||
|
printk( KERN_DEBUG "Module %{APPNAME} init\n" );
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
static void %{APPNAMELC}_exit_module(void)
|
||
|
{
|
||
|
printk( KERN_DEBUG "Module %{APPNAME} exit\n" );
|
||
|
}
|
||
|
|
||
|
module_init(%{APPNAMELC}_init_module);
|
||
|
module_exit(%{APPNAMELC}_exit_module);
|