what happens to "open" if the slot is left empty in file_operations.
Nov. 14, 2015
7:10 a.m.
Hi, When writing a char device driver, if the "open" slots is left vacant in the file_operations structure, what will happen if "open" is called ? An answer that gives the relevant code will be more than appreciated. Thanks.
Nov. 14, 2015
8:16 a.m.
New subject: what happens to "open" if the slot is left empty in file_operations.
On Sat, Nov 14, 2015 at 12:40 PM, Shiyao Ma <i@introo.me> wrote:
Hi,
When writing a char device driver, if the "open" slots is left vacant in the file_operations structure, what will happen if "open" is called ?
You can have a loot at chrdev_open() function in fs/char_dev.c file. regards sudip
3927
Age (days ago)
3927
Last active (days ago)
1 comments
2 participants
participants (2)
-
Shiyao Ma -
Sudip Mukherjee