[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] FIFO writes & reads atomic?



James Cassidy (jcassidy@nova.genesoft.com) wrote:
> Can I assume that writes from a rt task into a fifo are
> atomic from the point of view of the linux task reading the fifo?

In the standard version of RT-Linux reads and writes from RT-tasks are atomic.
If there's no space in the buffer for rtf_put, it will fail. Similarly for
rtf_get.  Reads and writes from Linux processes are not atomic. The code is in
fs/rt_fifo_new.c.

Michael.
--- [rtl] ---
For more information on Real-Time Linux see:
http://www.rtlinux.org/