add something to open

This commit is contained in:
twoneis 2025-03-27 21:25:57 +01:00
parent b2e8709647
commit 5b5a4d0785

View file

@ -82,6 +82,8 @@ lkm_open(struct inode *inode, struct file *fp)
{
printk(KERN_INFO "lkm: open: start\n");
try_module_get(THIS_MODULE);
printk(KERN_INFO "lkm: open: done\n");
return 0;
}