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

📄 rt_task_ipc_init.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 RT_TASK_IPC_INIT 2 "26 July 1997" "rt_ipc" "rt_ipc".SH NAMErt_task_ipc_init \- create a real-time task for use with rt_ipc.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 "rt_ipc.h".fi.sp.BI "int rt_task_ipc_init(RT_TASK_IPC * " task ", void (*" fn ")(int " data "), int " data ", int " stack_size ", int " priority ");.SH DESCRIPTION.B rt_task_ipc_initcreates a real-time task.  To make use of the IPC facilities of rt_ipc, youshould use.B rt_task_ipc_initinstead of the standard.B rt_task_initprovided by Real Time Linux..I taskis a structure the space for which must be provided by the application..I taskmust be present during the lifetime of the real-time task; thus it cannotbe an automatic variable.  This corresponds to the RT_TASK structure whichis passed to .BR rt_task_init ..I fnis the entry point of the new task.  The parent task can send a one-integervalue.I datato the new task..I stack_sizeis the size of the stack to be used by the new task, and .I priorityis the priority to be given the task.  The highest priority is 1, whilethe lowest is RT_LOWEST_PRIORITY..PPThe newly created real-time task is initially dormant.  It is normallymade active by a call to .BR rt_task_make_periodic ..SH "RETURN VALUE"On success, 0 is returned.  On failure, a negative value is returnedas described below..SH ERRORS.IP \fB-EINVAL\fP.I taskis already in use by another task..IP \fB-ENOMEM\fPspace could not be allocated for the real-time task..SH "BUGS"The RT_TASK_IPC type passed to.B rt_task_ipc_initis not compatible with the RT_TASK type passed to.BR rt_task_init .Use the macro MAKE_RT_TASK() to convert an RT_TASK_IPC to an RT_TASK whencalling a standard Real-Time Linux function..SH "AUTHOR"Jerry Epplin <JerryEpplin@worldnet.att.net>.SH "SEE ALSO".BR rt_mq_destroy (2),.BR rt_mq_init (2),.BR rt_mq_receive (2),.BR rt_mq_send (2),.BR rt_task_init (2),.BR rt_task_ipc_delete (2), .BR rt_sem_destroy (2), .BR rt_sem_init (2), .BR rt_sem_post (2), .BR rt_sem_trywait (2), .BR rt_sem_wait (2)

⌨️ 快捷键说明

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