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

📄 xsfsunits.h

📁 一个操作系统,用C语言实现开发的,我在一个浙江大学的操作系统实验网站找到.大家学习以下
💻 H
字号:
// XSFS Units Management

#ifndef __XSFSUNITS_H
#define __XSFSUNITS_H

#include "xsfsbase.h"

// Allocating modes
#define XSAM_CONTINUE	0x00000001
#define XSAM_STRICT		0x00010000	// used with XSAM_CONTINUE to force countinous allocation
									// it will fail, if requirements not satisfied
#define XSAM_CLEAN		0x00000100	// filled with zero

#ifdef __cplusplus
extern "C" {
#endif

int  xsfsAllocUnits(HXSFS, _u32 base, int count, _u32 result[], int mode);
void xsfsFreeUnits(HXSFS, _u32 units[], int count, int mode);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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