add something to open
This commit is contained in:
parent
b2e8709647
commit
5b5a4d0785
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,8 @@ lkm_open(struct inode *inode, struct file *fp)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "lkm: open: start\n");
|
printk(KERN_INFO "lkm: open: start\n");
|
||||||
|
|
||||||
|
try_module_get(THIS_MODULE);
|
||||||
|
|
||||||
printk(KERN_INFO "lkm: open: done\n");
|
printk(KERN_INFO "lkm: open: done\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue