[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: [rtl] P.S....FIFO writes & reads atomic?
On Mon, 15 Jun 1998, Richard Prescott wrote:
> On Sun, 14 Jun 1998, James Cassidy wrote:
>
> >
> > P.S. Is there any way to determine the number of bytes
> > currently sitting in the FIFO waiting to be read?
> >
>
> Add a ioctl to rt_fifo_new.c that will call a function available for
> modules !?
>
Nice. I think some more things should be needed:
I would prefer to communicate with real time driver through
ioctl calls rather than using rt-fifo to send commands.
Some additional call (e.g. rt_create_ioctl_handler) should be
required to add a handler to rt-fifo. Some predefined ioctl
calls should then do some usefull things:
- return size of data that currently are in FIFO;
- clear all data in fifo (also sometimes needed, Comments
in rtf.h says that rtf_resize does this by error but no one
should relay on feature that is called as error.
- may be also something else
Andris Pavenis
--- [rtl] ---
For more information on Real-Time Linux see:
http://www.rtlinux.org/