C# Class Mosa.Kernel.x86.VirtualPageAllocator

A virtual page allocator.
This is a simple bitmap implementation with no optimizations.
Exibir arquivo Open project: tgiphil/MOSA-Project Class Usage Examples

Public Methods

Method Description
Release ( uint address, uint count ) : void

Releases the pages.

Reserve ( uint size ) : uint

Reserves the pages.

Setup ( ) : void

Setups this instance.

Private Methods

Method Description
GetPageIndex ( uint address ) : uint

Gets the index of the page.

GetPageStatus ( uint page ) : bool

Gets the page status from the bitmap

SetPageStatus ( uint page, bool free ) : void

Sets the page status in the bitmap.

Method Details

Release() public static method

Releases the pages.
public static Release ( uint address, uint count ) : void
address uint The address.
count uint The count.
return void

Reserve() public static method

Reserves the pages.
public static Reserve ( uint size ) : uint
size uint The size.
return uint

Setup() public static method

Setups this instance.
public static Setup ( ) : void
return void