blob: 88ae0d0b9e08e9895a96cd624fcd43f98b49f261 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <linux/init.h>
#include <linux/module.h>
#include "fopdrv.h"
MODULE_LICENSE("MIT");
struct file_operations fops = {
.read = fop_read,
.write = fop_write,
.open = fop_open,
.release = fop_release,
};
static int mod_init(void) {
printk("%s\n", __PRETTY_FUNCTION__);
return 0;
}
static void mod_exit(void) {
printk("%s\n", __PRETTY_FUNCTION__);
}
module_init(mod_init);
module_exit(mod_exit);
|