Reference

rtf_resize(2)

resizes a prviously created real-time fifo

NAME

rtf_resize - resizes a prviously created real-time fifo

SYNOPSIS

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

int rtf_resize(unsigned int fifo, int size);

DESCRIPTION

rtf_resize modifies the real-time fifo (RT-FIFO) fifo, previously created with rtf_create(2), to have a new size of size.

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

ERRORS

-ENODEV

fifo is greater than or equal to RTF_NO.

-ENOMEM

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

BUGS

Any data present in the RT-FIFO when rtf_resize is executed is lost.

SEE ALSO

rtf_create(2), rtf_create_handler(2), rtf_destroy(2) rtf_get(2), rtf_put(2),

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.