mcb.h

来自「T-kernel 的extension源代码」· C头文件 代码 · 共 53 行

H
53
字号
/* *---------------------------------------------------------------------- *    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. * *---------------------------------------------------------------------- *//* *	mcb.h (file) * *	File management *	Map control block */#ifndef _FM_MCB_H_#define _FM_MCB_H_/* * When the logical block size that can be mapped is restricted, * define MappableBlockSize. * Mapping can be performed only when the logical block size is a multiple of MappableBlockSize. */#if VIRTUAL_ADDRESS#  define MappableBlockSize	4096#endif/* * Define CanNotMapRecord when the record map can not be performed at all. */#if CANNOT_MAP_RECORD#  define CanNotMapRecord#endif/* * Map control block */typedef struct MCB {	QUEUE	fdq;		/* For connection of the map control block from FD */	QUEUE	rcbq;		/* For connection of the map control block from RCB */	ID	mid;		/* Map ID */	W	mode;		/* Map mode */} MCB;#endif

⌨️ 快捷键说明

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