Is drivers' open() method get called while fork or dup fd?

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

 



I want to store some process-dependent information in my driver. I want to init them in open() and
deinit them in flush(), these 2 methods get called when the app process calling open() or close() functions.
 
But if one parent process forked child process with my driver opened. Than, is the open() method get called?
I want to store child-process-dependent as well.
 
How about in dup() ?? Will the open() get called in this case? thanks.

[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