On Mon, 16 Nov 1998, Dan Reznik wrote:

> after i stop an rt-process with rt_suspend, how can i clear the FIFO
> queues used by the rt-process (so next time i start the process with
> rt_make_periodic) i am sure not to read() any packets from theprevious
> batch???
> 
> please answer thru email to [EMAIL PROTECTED]
> 
> dan reznik
> phd comp sci
> uc-berkeley
> --- [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/
> 
Hi,

i am clearing a FIFO just by resizing it to zero and then back to
the original size :

rtf_resize(0,0);
rtf_resize(0,<whatever it was>);

This works perfectly for my system (RTLinux 0.6 on kernel 2.0.33).
Problem is, that it relies on a bug in RTLinux, and it probably won`t 
work in future versions of RTLinux. ( see manpage of rtf_resize )A

Markus 


--------------------------------------------------
Markus Weiss
Laboratoire des Champs Magnétiques Intenses
25, rue des Martyrs - BP 166
F-38042 Grenoble Cedex 9

Tel. +33 4 76 88 78 56
Fax. +33 4 76 85 56 10

email [EMAIL PROTECTED]
--------------------------------------------------


--- [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