I have registered a character driver using the api
The driver creates an entry in
/dev/myfile. User space applications can access my driver by opening the /dev/myfile. Now I want to make my character driver such that only one user space application can access my driver at a time; only when that user space application closes the file can another user space program access my driver.
Can this be done in the kernel level?
I don't have control of the number of applications running in user space so i have to make changes only in kernel level.