Results 1 to 2 of 2
Thread: Race conditions
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2006
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.
10-01-2006 #2Originally Posted by bertie