1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
.\" This -*- nroff -*- file has been generated from
.\" DocBook SGML with docbook-to-man on Debian GNU/Linux.
...\"
...\" transcript compatibility for postscript use.
...\"
...\" synopsis: .P! <file.ps>
...\"
.de P!
\\&.
.fl \" force out current output buffer
\\!%PB
\\!/showpage{}def
...\" the following is from Ken Flowers -- it prevents dictionary overflows
\\!/tempdict 200 dict def tempdict begin
.fl \" prolog
.sy cat \\$1\" bring in postscript file
...\" the following line matches the tempdict above
\\!end % tempdict %
\\!PE
\\!.
.sp \\$2u \" move below the image
..
.de pF
.ie \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie !\\*(f4 \{\
. ft \\*(f4
. ds f4\"
' br \}
.el .ie !\\*(f3 \{\
. ft \\*(f3
. ds f3\"
' br \}
.el .ie !\\*(f2 \{\
. ft \\*(f2
. ds f2\"
' br \}
.el .ie !\\*(f1 \{\
. ft \\*(f1
. ds f1\"
' br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
'\" t
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
.TH "rtf_create" "3"
.SH "NAME"
rtf_create \(em create a realtime fifo
.SH "SYNOPSIS"
.PP
.nf
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
#include <rtl_fifo.h>
int \fBrtf_create\fP(unsigned int \fBfifo\fR, int \fBsize\fR);
.fi
.SH "DESCRIPTION"
.PP
\fBrtf_create\fP creates a realtime fifo (RT-FIFO) of size \fBsize\fR and assigns it the identifier \fBfifo\fR. \fBfifo\fR is a value unique within the system, and must be less than RTF_NO.
.PP
The RT-FIFO is a mechanism, implemented as a character device, to communicate between realtime tasks and ordinary Linux processes. The rtf_* functions are used by the realtime tasks; Linux processes use standard character device access functions such as \fBread(3)\fP, \fBwrite(3)\fP, and \fBselect(3)\fP.
.SH "RETURN VALUE"
.PP
On success, 0 is returned. On failure, a negative value is returned as described below.
.SH "ERRORS"
.IP "-ENODEV" 10
\fBfifo\fR is greater than or equal to RTF_NO.
.IP "-EBUSY" 10
\fBfifo\fR is already in use. Choose a different ID.
.IP "-ENOMEM" 10
\fBsize\fR bytes could not be allocated for the RT-FIFO.
.SH "NOTES"
.PP
This function should only be used in the Linux \fBinit_module()\fP context or in user space via PSC library (please see below).
RT-FIFOs created in \fBinit_module()\fP should be destroyed with \fBrtf_destroy()\fP in \fBcleanup_module\fP.
.PP
\fBrtf_create\fP is a system call made available by PSC,
the user-level real-time signal library. It can be called from user space,
but not from PSC handlers.
.SH "SEE ALSO"
\fIrtf_create_handler(3) (link to URL rtf_create_handler.3.html) \fR, \fIrtf_destroy(3) (link to URL rtf_destroy.3.html) \fR, \fIrtf_get(3) (link to URL rtf_get.3.html) \fR, \fIrtf_put(3) (link to URL rtf_put.3.html) \fR
.PP
\(co1997 Jerry Epplin.
.PP
Modifications for RTLinux 2.x and 3.x by Michael Barabanov. \(co2001 FSMLabs Inc.
.PP
All rights reserved.
...\" created by instant / docbook-to-man, Wed 13 Jun 2001, 17:58
|