[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: [rtl] RT FIFOs and FIFO handlers]






Michael Barabanov wrote:

> You need to use rtf_create_rt_handler, not rtf_create_handler.
>

According to the man page for rtf_create_rt_handler(), it is used to set up a handler which is triggered whenever rtf_put() or rtf_get() is executed by an rt process.  That is
not what I am trying to do.  I need a handler to be triggered when read() or write() are called by a non-rt process.  The documentation says that this is what
rtf_create_handler() is for.

Reading the document more closely, however, reveals an explanation that says this facility is used in conjunction with rtf_get() to read data from the FIFO, after it is put there
with a write().  My problem is the opposite.  I want to put data into the FIFO, _from the rt side_ only when the Linux process is ready to read it.  In other words... when it
executes a read().

It appears that what I am trying to do is not supported by RTLinux.  If anyone can either confirm that or show me the error of my ways and explain how it _can_ be done, I'd
appreciate it.

Thanks.

Ken