rtf_ipc_destroy(2)

rtf_ipc_destroy2

Destroy a real-time fifo

Usage

#define MODULE
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <linux/errno.h>
#include <linux/rtf.h>
#include rt_ipc.h

int rtf_ipc_destroy(unsigned int fifo);

Overview

rtf_ipc_destroy removes a real-time fifo (RT-FIFO) previously created with rtf_ipc_create(2). fifo is then available for reuse by another call to rtf_ipc_create(2).

The rt_ipc RT-FIFO is a mechanism, implemented as a character device, to communicate between real-time tasks and ordinary Linux processes. It is based on the Real-Time Linux RT-FIFO mechanism. 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, a negative value is returned as described below.

Errors

-EINVAL

fifo is not a valid RT-FIFO identifier.

Author

Jerry Epplin <[email protected]>

From rtlinux 2.0rel-1 in Debian 2.2 (Potato). Parsed by carta from the page's man source.