How to know whether a dev file has been opened or not?
Inside my driver init code I want to know whether a dev file like /dev/video has been opened by some application or not?
How can I do that?
Could any body please help? I need to know urgently.
Thanks in advance.
I think the "lsof" bash command can do this.
For instance, when I run: lsof /dev/snd/* I get this output:
But I cannot run any command inside module init code.
|All times are GMT -5. The time now is 09:31 AM.|