📄 rtf_ipc_create.2
字号:
.\".\" Copyright (C) 1997 Jerry Epplin. All rights reserved..\".\" Permission is granted to make and distribute verbatim copies of this.\" manual provided the copyright notice and this permission notice are.\" preserved on all copies..\".\" Permission is granted to copy and distribute modified versions of this.\" manual under the conditions for verbatim copying, provided that the.\" entire resulting derived work is distributed under the terms of a.\" permission notice identical to this one.\" .\" The author assumes no responsibility for errors or omissions, or for.\" damages resulting from the use of the information contained herein..\" .\" Formatted or processed versions of this manual, if unaccompanied by.\" the source, must acknowledge the copyright and authors of this work..\".TH RTF_IPC_CREATE 2 "15 August 1997" "rt_ipc" "rt_ipc".SH NAMErtf_ipc_create \- create a real-time fifo.SH SYNOPSIS.nf.B #define MODULE.B #include <linux/module.h> .B #include <linux/kernel.h> .B #include <linux/version.h> .B #include <linux/errno.h> .B #include <linux/rtf.h> .B #include "rt_ipc.h".fi.sp.BI "int rtf_ipc_create(unsigned int " fifo ", int " size ", int " rtl_to_linux ");.SH DESCRIPTION.B rtf_ipc_createcreates a real-time fifo (RT-FIFO) of size.I sizeand assigns it the identifier.IR fifo ..I fifois a value unique within the system, and must be less than IPC_RTF_NO.If .I rtl_to_linuxis 1, the fifo is used for transferring data from RT-Linux tasks to a Linuxprocess. If.I rtl_to_linuxis 0, the fifo is used for transferring data from a Linux process toone or more RT-Linux tasks..PPThe rt_ipc RT-FIFO is a mechanism, implemented as a character device, tocommunicate between real-time tasks and ordinary Linux processes. It isbased on the Real-Time Linux RT-FIFO mechanism. Thertf_* functions are used by the real-time tasks; Linux processes usestandard character device access functions such as.BR read(2) ,.BR write(2) ,and.BR select(2) ..SH "RETURN VALUE"On success, 0 is returned. On failure, a negative value is returnedas described below..SH ERRORS.IP \fB-ENODEV\fP.I fifois not less than IPC_RTF_NO and RTF_NO..IP \fB-EBUSY\fP.I fifois already in use. Choose a different ID..IP \fB-ENOMEM\fP.I sizebytes could not be allocated for the RT-FIFO..SH "AUTHOR"Jerry Epplin <JerryEpplin@worldnet.att.net>.SH "SEE ALSO".BR rtf_ipc_destroy (2), .BR rtf_receive (2), .BR rtf_send (2)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -