[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: [rtl] SOLUTION TO Possible new problem with older version of fifo
The information is 100% correct. I made the change and rf_put() is now
working exactly as it should. Thanks for the info
> -----Original Message-----
> From: Steve Papacharalambous [SMTP:stevep@zentropix.com]
> Sent: Wednesday, October 13, 1999 5:35 PM
> To: Dresner, Norman A.
> Cc: 'RTLinux'; realtime@realtimelinux.org
> Subject: Re: [rtl] Possible new problem with older version of fifo
>
> "Dresner, Norman A." wrote:
[SNIP -- summary: rtf_put is returning zero all the
time]
> > I'm using RH 5.2 with RTL 0.9J (The Zentropix distribution). There are
> > three obvious possibilities:
> > 1. My copy of rtf_put() is broken,
> > or 2. There's a subtle bug in my code that I don't see.,
> > or 3. The documentation is wrong about the return value (although a
> > peek at the code says otherwise).
> >
> > So, my question is, which one is it?
> >
> > Thanks
> > Norm
>
> Hi,
>
> I think that the answer to your question is 1 as there is a bug in this
> version of rtl_fifo.c which has been fixed in later releases of RTLv1.
>
> If you change the statement:
return count;
> to:
return written;
> at the end of function rtf_put in rtl_fifo.c this should fix the
> problem.
>
> Steve Papacharalambous
>
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/