mos_stor.h
来自「用VC编写的一个微型操作系统」· C头文件 代码 · 共 47 行
H
47 行
// Mos_stor.h: interface for the CMos_stor class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MOS_STOR_H__8B275FA6_B9EE_44BF_8707_3819D0561BCD__INCLUDED_)
#define AFX_MOS_STOR_H__8B275FA6_B9EE_44BF_8707_3819D0561BCD__INCLUDED_
#include "Mos_UI.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
struct maptype
{
int used;
int index;
maptype* forwp;
};
struct memtype
{
int used;
int index;
memtype* forwp;
};
class CMos_stor
{
public:
maptype* DSTRA;//自由块链尾指针
maptype* DSPTR;//自由块链首指针
int DSFRC;//自由块总块数
memtype* MEMTRA;//自由页链尾指针
memtype* MEMPTR;//自由页链首指针
int MEMFRC;//自由页总页数
memtype MEMTB[30];
maptype DSKMTB[100];
void dsk_free(int m,maptype *a);
bool dsk_allocation(int m,maptype* &t);
void mem_free(int m,memtype *ptr);
bool mem_allocation(int m,memtype *&ret);
CMos_stor();
virtual ~CMos_stor();
private:
CMos_UI m_UI;
};
#endif // !defined(AFX_MOS_STOR_H__8B275FA6_B9EE_44BF_8707_3819D0561BCD__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?