May I open my own device driver twice simultanoiusly from a user program under Linux?

Posted by Viktor Gyuris on Stack Overflow See other posts from Stack Overflow or by Viktor Gyuris
Published on 2010-05-06T15:56:52Z Indexed on 2010/05/06 20:58 UTC
Read the original article Hit count: 397

Filed under:
|

Somewhere I read that opening the same file twice has an undefined semantics and should be avoided. In my situation I would like to open my own device multiple times associating multiple file descriptors to it. The file operations of my device are all safe. Is there some part of Linux between the sys call open() and the point it calls the registered file operation .open() that is unsafe?

© Stack Overflow or respective owner

Related posts about linux

Related posts about device-driver