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

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

 



normally process-specific information should be stored in userspace's
process.   and if necessary inter-process communication setup to share
the variable values.   kernel should preferably be used for security
related, or non-per-process specific stuff.   this is because anything
u do in the kernel, is visible to every party in the kernel.....and
many other reasons as well...

2009/4/15 yihect <yihect@xxxxxxx>:
> 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.



-- 
Regards,
Peter Teoh

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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