rtf_flush

Name

rtf_flush -- empty a realtime FIFO

Synopsis

       #include <rtl_fifo.h>

       int rtf_flush(unsigned int fifo);      

DESCRIPTION

rtf_flush empties the RT-FIFO fifo.

The RT-FIFO is a mechanism, implemented as a character device, to communicate between realtime tasks and ordinary Linux processes. The rtf_* functions are used by the realtime tasks; Linux processes use standard character device access functions such as read(2), write(2) and select(2).

RETURN VALUE

This function returns 0 on success and a negative error code on error.

ERRORS

-ENODEV

N or P is greater than or equal to RTF_NO.

-EINVAL

N or P is not a valid RT-FIFO identifier.

SEE ALSO

read(2), rtf_create(3), rtf_create_handler(3), rtf_destroy(3), rtf_get(3), rtf_make_user_pair(3), write(2), ioctl(3)

2001 FSMLabs Inc.

All rights reserved.