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

📄 tkcall.h

📁 T-kernel 的extension源代码
💻 H
字号:
/* *---------------------------------------------------------------------- *    T-Kernel / Standard Extension * *    Copyright (C) 2006 by Ken Sakamura. All rights reserved. *    T-Kernel / Standard Extension is distributed  *      under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * *    Version:   1.00.00 *    Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* *	tkcall.h (extension) * *	T-Kernel compatible system call (Inter-task synchronous communication management) */#ifndef	__EXTENSION_TKCALL_H__#define	__EXTENSION_TKCALL_H__#include <basic.h>#include <tk/syscall.h>#include <tk/errno.h>#ifdef __cplusplusextern "C" {#endif/* * Definitions for automatic generation of interface library (mkiflib) *//*** DEFINE_IFLIB[INCLUDE FILE]<extension/tkcall.h>[PREFIX]TCM***/#define TA_DELEXIT	0x01000000	/* Delete at the time of process termination *//* * System call by inter-task synchronous communication management * (Keep taskcomm.h and system call number from overlapping) *//* [BEGIN SYSCALLS] *//* ORIGIN_NO 0x1000 *//* T-Kernel compatible semaphore */IMPORT ID  tkse_cre_sem( T_CSEM *pk_csem );IMPORT ER  tkse_del_sem( ID semid );IMPORT ER  tkse_sig_sem( ID semid, INT cnt );IMPORT ER  tkse_wai_sem( ID semid, INT cnt, TMO tmout );IMPORT ER  tkse_ref_sem( ID semid, T_RSEM *pk_rsem );/* ALIGN_NO 0x10 *//* T-Kernel compatible mutex */IMPORT ID  tkse_cre_mtx( T_CMTX *pk_cmtx );IMPORT ER  tkse_del_mtx( ID mtxid );IMPORT ER  tkse_loc_mtx( ID mtxid, TMO tmout );IMPORT ER  tkse_unl_mtx( ID mtxid );IMPORT ER  tkse_ref_mtx( ID mtxid, T_RMTX *pk_rmtx );/* ALIGN_NO 0x10 *//* T-Kernel compatible event flag */IMPORT ID  tkse_cre_flg( T_CFLG *pk_cflg );IMPORT ER  tkse_del_flg( ID flgid );IMPORT ER  tkse_set_flg( ID flgid, UINT setptn );IMPORT ER  tkse_clr_flg( ID flgid, UINT clrptn );IMPORT ER  tkse_wai_flg( ID flgid, UINT waiptn, UINT wfmode, UINT *p_flgptn, TMO tmout );IMPORT ER  tkse_ref_flg( ID flgid, T_RFLG *pk_rflg );/* ALIGN_NO 0x10 *//* T-Kernel compatible message buffer */IMPORT ID  tkse_cre_mbf( T_CMBF *pk_cmbf );IMPORT ER  tkse_del_mbf( ID mbfid );IMPORT ER  tkse_snd_mbf( ID mbfid, VP msg, INT msgsz, TMO tmout );IMPORT INT tkse_rcv_mbf( ID mbfid, VP msg, TMO tmout );IMPORT ER  tkse_ref_mbf( ID mbfid, T_RMBF *pk_rmbf );/* ALIGN_NO 0x10 *//* T-Kernel compatible rendezvous */IMPORT ID  tkse_cre_por( T_CPOR *pk_cpor );IMPORT ER  tkse_del_por( ID porid );IMPORT INT tkse_cal_por( ID porid, UINT calptn, VP msg, INT cmsgsz, TMO tmout );IMPORT INT tkse_acp_por( ID porid, UINT acpptn, RNO *p_rdvno, VP msg, TMO tmout );IMPORT ER  tkse_fwd_por( ID porid, UINT calptn, RNO rdvno, VP msg, INT cmsgsz );IMPORT ER  tkse_rpl_rdv( RNO rdvno, VP msg, INT rmsgsz );IMPORT ER  tkse_ref_por( ID porid, T_RPOR *pk_rpor );/* ALIGN_NO 0x10 *//* T-Kernel compatible mail box */IMPORT ID  tkse_cre_mbx( T_CMBX *pk_cmbx );IMPORT ER  tkse_del_mbx( ID mbxid );IMPORT ER  tkse_snd_mbx( ID mbxid, T_MSG *msg );IMPORT INT tkse_rcv_mbx( ID mbxid, T_MSG **msg, TMO tmout );IMPORT ER  tkse_ref_mbx( ID mbxid, T_RMBX *pk_rmbx );/* [END SYSCALLS] */#ifdef __cplusplus}#endif#endif /* __EXTENSION_TKCALL_H__ */

⌨️ 快捷键说明

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