Hello everyone, I've got a question about race conditions.
I'm writing the dev.drv and have to share some data between user processes(sys.call) and tasklet.
The shared data is stored in cyclic queue.
My write() sys.call pushing the data to queue and the tasklet pulling the data and writing it to I/O port.
Do I have to use some lock/unlock mechanisms to protect my deque(), enqueue() functions?
The tasklet could be raised by HW INT or from my write() sys.call.
The kernel version is 2.4.32 and the arch. is I386.
Thanks a lot.