Prevent a process from opening a file more than once

Venkatram Tummala venkatram867 at gmail.com
Tue Sep 27 19:56:24 EDT 2011


Hi All,

I have a simple device driver which creates a /dev/XYZ file. I need to
prevent a process from opening the file more than once. However, multiple
processes can open the file simultaneously. Is there any any elegant way to
do this other than checking all opened files in the process ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110927/e62cac0c/attachment.html 


More information about the Kernelnewbies mailing list