Daniel Krippner wrote:
> 
>         Greetings!
> 
> Question: in the manpages it says that a handler installed with
> rtf_create_handler is "executed when data is written to or read from a
> real-time fifo" . Just what I need.
> Problem is, the handler I installed in my module only gets called when I
> write data to the fifo, not when I try to read from it (user space).
> Am I being stupid, got the concept wrong, or is there a way to get the
> handler executed also when reading from the fifo?
> thanks
>         Daniel
> 

Hi Daniel,

One thing to be aware of, the handler will run only when there is data
to read.  If there is no data, the user space process will block until
there is data (unless you set it non-blocking), only when there is data
in the fifo to read will the driver wake up and then run your handler.

Regards, Stuart
-- [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