#include #include #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);