blob: 0d92e222e6c87d8f73dd4d30e3381eab1d6364c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <linux/init.h>
#include <linux/module.h>
MODULE_AUTHOR("jasa7131");
MODULE_LICENSE("GPL");
int hello_init(void);
void hello_exit(void);
int hello_init(void) {
printk(KERN_ALERT "inside %s function\n", __FUNCTION__);
return 0;
}
void hello_exit(void) {
printk(KERN_ALERT "inside %s function\n", __FUNCTION__);
}
module_init(hello_init);
module_exit(hello_exit);
|