[][src]Module kernel::memory

Memory management

Memory management

Some code was borrowed from Phil Opp's Blog

Re-exports

pub use paging::PAGE_SIZE;
pub use paging::PhysicalAddress;

Modules

bump

Bump frame allocator

recycle

Recycle allocator Uses freed frames if possible, then uses inner allocator

Structs

Frame

A frame, allocated by the frame allocator. Do not add more derives, or make anything pub!

FrameIter
MemoryArea

A memory map area

MemoryAreaIter

Constants

MEMORY_AREA_ACPI

Memory is used by ACPI, and can be reclaimed

MEMORY_AREA_FREE

Memory is free to use

MEMORY_AREA_NULL

Memory does not exist

MEMORY_AREA_RESERVED

Memory is reserved

Traits

FrameAllocator

Functions

allocate_frames

Allocate a range of frames

deallocate_frames

Deallocate a range of frames frame

free_frames

Get the number of frames available

init

Init memory module Must be called once, and only once,

init_noncore

Init memory module after core Must be called once, and only once,

used_frames

Get the number of frames used