fops owner

This commit is contained in:
Ciro Santilli
2017-06-16 08:13:52 +01:00
parent 4eae56e36f
commit fe4cbf0f49
6 changed files with 8 additions and 0 deletions

View File

@@ -129,6 +129,9 @@ static loff_t llseek(struct file *filp, loff_t off, int whence)
}
static const struct file_operations fops = {
/* Prevents rmmod while fops are running.
* Try removing this for poll, which waits a lot. */
.owner = THIS_MODULE,
.llseek = llseek,
.open = open,
.read = read,