rtf_destroy2
Remove a real-time fifo created with rtf_create(2)
Usage
#define MODULE #include <linux/module.h> #include <linux/kernel.h> #include <linux/version.h> #include <linux/errno.h> #include <linux/rtf.h>
int rtf_destroy(unsigned int fifo);
Overview
rtf_destroy removes a real-time fifo (RT-FIFO) previously created with rtf_create(2). fifo is then available for reuse by another call to rtf_create(2).
The RT-FIFO is a mechanism, implemented as a character device, to communicate between real-time tasks and ordinary Linux processes. The rtf_* functions are used by the real-time tasks; Linux processes use standard character device access functions such as read(2), write(2), and select(2).
Return value
On success, 0 is returned. On failure, -1 is returned, and errno is set as described below.
Errors
|
fifo is greater than or equal to RTF_NO. |
|---|---|
|
fifo is not a valid RT-FIFO identifier. |
Releases
Unchanged in 2 releases since Debian 2.2 (Potato).