Skip to contentSkip to conversation

wait_queue's

DISCUSSION Heinrich du Toit 1 participant 1 message Dec 3, 2002

lore
Share & tools
lore
#0 lore raw

Hello

I'm busy writing a device driver.
This device driver exports one char device.

Now the problem it that when 2 programs try to write to this device at the same time... Well it works but they don't get queue fairly.

Both processes write's get blocked.. But for a long time in a row only one seem to write and the otherone stays block. I think the problem is that the kernel wait queue is a LIFO structure and not a FIFO

Anyway in which I could change it to a FIFO? or any other ideas?

Thanks
-Heinrich