Introduction - If you have any usage issues, please Google them yourself
#ifndef __DEF_VMM_H__
#define __DEF_VMM_H__
//! Magic number to identify a memory block for kernel space.
#define MCB_MAGIC *((unsigned long*)"$MCB")
//! Magic number to identify a memory block for user mode space.
#define UMB_MAGIC *((unsigned long*)"$UMB")
//! Free memory block.
#define MB_FREE 0
//! Allocated memory block.
#define MB_BUSY 1
//! A memory control block structure.
typedef struct MemroyCtrlBock {
unsigned long ulMagic
unsigned long ulFlags
unsigned long ulSize
unsigned long ulOwnerPtr
} ts_MCB