man rtf_flush () - empty a realtime FIFO

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) (link to URL ../susv2/xns/read.html) , rtf_create(3) (link to URL rtf_create.3.html) , rtf_create_handler(3) (link to URL rtf_create_handler.3.html) , rtf_destroy(3) (link to URL rtf_destroy.3.html) , rtf_get(3) (link to URL rtf_get.3.html) , rtf_make_user_pair(3) (link to URL rtf_make_user_pair.3.html) , write(2) (link to URL ../susv2/xns/write.html) , ioctl(3) (link to URL ../susv2/xsh/ioctl.html)

©2001 FSMLabs Inc.

All rights reserved.