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 <[email protected]>:
> 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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to