[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [rtl] P.S....FIFO writes & reads atomic?
> P.S. Is there any way to determine the number of bytes
> currently sitting in the FIFO waiting to be read?
No. You might be interested to know that if a Linux process requests to read,
say, 1000 bytes from a FIFO, and there's only 100 bytes of data available in
the FIFO, the read(2) will return immediately. It can even return less than
100 bytes (but no zero!). IOW, reads an writes from/to RT-FIFOs have a normal
UNIX semantics.
Michael.
--- [rtl] ---
For more information on Real-Time Linux see:
http://www.rtlinux.org/