Hi,
I am working with a device driver.
When I close the device file I start the release procedure in the module.
The problem is that if the application that opened the device file makes a fork, I have 2 releases, since after the fork both the processes have the device file open.
When one of the 2 processes closes the device file, I have a kernel panic because the other process keeps using it.
Is there a way of preventing this behaviour?
Thanks in advance.
I am working with a device driver.
When I close the device file I start the release procedure in the module.
The problem is that if the application that opened the device file makes a fork, I have 2 releases, since after the fork both the processes have the device file open.
When one of the 2 processes closes the device file, I have a kernel panic because the other process keeps using it.
Is there a way of preventing this behaviour?
Thanks in advance.