21 lines
371 B
C
21 lines
371 B
C
|
#include <linux/module.h> /* Needed by all modules */
|
||
|
#include <linux/kernel.h> /* Needed for KERN_INFO */
|
||
|
|
||
|
int init_module(void)
|
||
|
{
|
||
|
printk(KERN_INFO "Hello world 1.\n");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
int some_method(void){
|
||
|
printk(KERN_INFO "Some method called\n");
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
void cleanup_module(void)
|
||
|
{
|
||
|
printk(KERN_INFO "Goodbye world 1.\n");
|
||
|
}
|
||
|
|
||
|
MODULE_LICENSE("GPL");
|