---
name: "rtf_destroy"
section: "2"
platform: "linux"
package: "rtlinux-doc"
version: "1.0-2"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/rtf_destroy"
---

# rtf\_destroy(2)

remove a real-time fifo created with rtf\_create(2)

## NAME

rtf\_destroy - remove a real-time fifo created with [rtf\_create(2)](/rtf_create/2.md)

## 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\_destroy(unsigned int** *fifo***);**

## DESCRIPTION

**rtf\_destroy** removes a real-time fifo (RT-FIFO) previously created with **[rtf\_create(2)](/rtf_create/2.md).** *fifo* is then available for reuse by another call to **[rtf\_create(2)](/rtf_create/2.md).**

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)](/read/2.md)**, **[write(2)](/write/2.md)**, and **[select(2)](/select/2.md)**.

## RETURN VALUE

On success, 0 is returned.  On failure, -1 is returned, and *errno* is set as described below.

## ERRORS

- **-ENODEV**

  *fifo* is greater than or equal to RTF\_NO.

- **-EINVAL**

  *fifo* is not a valid RT-FIFO identifier.

## SEE ALSO

[**rtf\_create**(2)](/rtf_create/2.md), [**rtf\_create\_handler**(2)](/rtf_create_handler/2.md), [**rtf\_get**(2)](/rtf_get/2.md), [**rtf\_put**(2)](/rtf_put/2.md), [**rtf\_resize**(2)](/rtf_resize/2.md),

## 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.
