C# Class Mosa.Kernel.x86.VirtualPageAllocator

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

Méthodes publiques

Méthode Description
Release ( uint address, uint count ) : void

Releases the pages.

Reserve ( uint size ) : uint

Reserves the pages.

Setup ( ) : void

Setups this instance.

Private Methods

Méthode 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 méthode

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

Reserve() public static méthode

Reserves the pages.
public static Reserve ( uint size ) : uint
size uint The size.
Résultat uint

Setup() public static méthode

Setups this instance.
public static Setup ( ) : void
Résultat void