On Thu, 14 Sep 2000 [EMAIL PROTECTED] wrote:
> Can I make a handler to trigger on a semaphore ? (could be a damn
> question), but I need an asynchronous response to a FIFO message.
> Besides, I always thought that semaphores can be set on a user side
> only,but in kernel you should use spinlocks?
No, there exist also semephores in normal Linux kernel, and I also think that
RTL distribution should contain RT semaphores.
But to me using FIFOs and semaphores to communicate between two kernel
modules is a bit strange. All address space is shared. Why don't you just
save the data to a buffer and call the handler function from the
other module directly? This is fastest. The only disadvantege I can see is
that the handler will runn immediately and there is no way to lower the
priority of processing task. To do task switch you will need semephore.
Best regards,
--
Tomek
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/