Default file_operations methods?
Sept. 12, 2017
3:15 a.m.
Hi everyone, I'm testing out a small kernel module and wondered what the default file_operations methods are. I know about no_llseek for llseek, but what about the rest? Is there anything like no_llseek for e.g. read, write and so on? The reason I'm asking this is that my module should only allow opening, closing, and calling a couple ioctls. Reading, writing and such wouldn't make sense here.
Sept. 12, 2017
9:14 p.m.
Nevermind, I just saw that if read/write are left undefined, they'll be NULL and return -EINVAL.
3259
Age (days ago)
3259
Last active (days ago)
1 comments
2 participants
participants (2)
-
Martin Galvan -
omgalvan.86@gmail.com