Ken,

I believe that the fifo handler gets triggered when a put has been executed on the 
other end of the fifo.  I don't think that a read on the fifo kicks off the handler.

Rich

-----Original Message-----
From: Ken Ramey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 3:47 PM
To: [EMAIL PROTECTED]
Subject: [rtl] RT FIFOs and FIFO handlers


I have an RTLinux application that sets up two FIFOs; one for reading
commands from the Linux side and another FIFO for sending data to the
Linux side.  Initially, I had the RT data collection thread just shoving
the data up the pipe with rtf_put() as it was ready.  I discovered,
however, that I was overrunning the non-rt side.

I have currently configured the system to use FIFO handlers on each
side.  The handler for writes from the non-rt side seems to be working
as I expected.  The other one, however never seems to be activated.  The
non-rt program does a read from the FIFO.  I expected that would cause
the FIFO handler to be invoked to put data in the FIFO.  Instead, the
handler is never activated and the non-rt application blocks waiting for
data.

I am beginning to suspect that there is a fundamental flaw in my
thinking and that what I am trying to do is not possible.  I hope
someone will tell me I am wrong (and that this actually WILL work) and
that I've just made some stupid mistake.  Any help would be greatly
appreciated.

Ken Ramey
Steward Observatory

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/

Reply via email to