Invoking ioctls for a device from 3 applications
I have a wireless lan module mounted on my PXA270 board linux kernel 2.6.19-1 platform. I am using some ioctls available with this wireless lan client module.
I have three applications that invoke these ioctls to access this device. These applications can call these ioctls at any time during the program execution.
1. First application calls wireless tools utility iwconfig that calls ioctl to device.
2. wpa_supplicant application which also calls ioctl to this device.
3. Third application which calls ioctl to read the protocol state of this device (Associated to access point or not).
I did not have a synchronisation routine between these 3 applications. Does kernel synchronise access to device so that at a time only one application can access the device?