⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtf_send.2

📁 rtlinux(realtime linix)3.0,在kernel2.2.18上编译运行
💻 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_SEND 2 "15 August 1997" "rt_ipc" "rt_ipc".SH NAMErtf_send \- send data to an rt_ipc 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_send(unsigned int " fifo ", void *" buf ", int " count ", RTIME " timeout ").SH DESCRIPTION.B rtf_sendsends data to the rt-fifo.IR fifo .The data, of size.IR count ,is taken from.IR buf .If.I timeoutis RT_NO_WAIT, the function returns immediately even if.I countbytes cannot be sent.  If.I timeoutis RT_WAIT_FOREVER, the function blocks until.I countbytes can be sent.  If.I timeoutis any other value, it represents the time at which the function will returnwith a timeout after unsuccessfully waiting to send the data.  If.B rtf_sendcannot send the entire block, no data is sent..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"If the return value is greater than or equal to zero, it represents thenumber of bytes received.  This might be zero if the function timed outor RT_NO_WAIT was specified and less than.I countbytes could be sent.  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-EINVAL\fP.I fifois not a valid fifo identifier..SH "AUTHOR"Jerry Epplin <JerryEpplin@worldnet.att.net>.SH "SEE ALSO".BR rtf_ipc_create (2), .BR rtf_ipc_destroy (2), .BR rtf_receive (2)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -