日本坂村健教授写的一个实时操作系统内核T-Kernel。

源代码在线查看: libtk.h

软件大小: 1701 K
上传用户: epower
关键词: T-Kernel 日本 实时操作系统 内核
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*				 *----------------------------------------------------------------------				 *    T-Kernel				 *				 *    Copyright (C) 2004-2006 by Ken Sakamura. All rights reserved.				 *    T-Kernel is distributed under the T-License.				 *----------------------------------------------------------------------				 *				 *    Version:   1.02.01				 *    Released by T-Engine Forum(http://www.t-engine.org) at 2006/1/10.				 *				 *----------------------------------------------------------------------				 */								/*				 *	@(#)libtk.h (libtk)				 *				 *	T-Kernel library common definitions				 */								#include 				#include 				#include 				#include 				#include 								/*				 * Initialization and deletion of library internal shared exclusive				 * control lock 				 */				IMPORT ER  _init_liblock( void );				IMPORT void _delete_liblock( void );								/* ------------------------------------------------------------------------ */								IMPORT	MACB	_Kmacb;		/* Kmalloc control block */				IMPORT	MACB	_Vmacb;		/* Vmalloc control block */				IMPORT	MACB	_Smacb;		/* Smalloc control block */								/*				 * Memory allocation exclusion control 				 */				#define MEMLOCK(ERR_RET) {						\						if ( _lib_lock(_LL_MEMALLOC, TRUE) < E_OK ) {		\							ERR_RET;					\						}							\					}								#define MEMUNLOCK() {							\						_lib_unlock(_LL_MEMALLOC);				\					}								/* ------------------------------------------------------------------------ */							

相关资源