rtf_create(2)

rtf_create2

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

int rtf_create(unsigned int fifo, int size);

Overview

rtf_create creates a real-time fifo (RT-FIFO) of size size and assigns it the identifier fifo. fifo is a value unique within the system, and must be less than RTF_NO.

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, a negative value is returned as described below.

Errors

-ENODEV

fifo is greater than or equal to RTF_NO.

-EBUSY

fifo is already in use. Choose a different ID.

-ENOMEM

size bytes could not be allocated for the RT-FIFO.

Releases

Unchanged in 2 releases since Debian 2.2 (Potato).

  1. 2.2–3.0

Author

This manual page was written by Jerry Epplin.

Copyright (C) 1997 Jerry Epplin, placed under the GNU General Public License, see the file copyright for details.

From rtlinux-doc 1.0-2 in Debian 3.0 (Woody). Parsed by carta from the page's man source.