Re: what happens to "open" if the slot is left empty in file_operations.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Sat, Nov 14, 2015 at 12:40 PM, Shiyao Ma <i@xxxxxxxxx> 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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux