Skip to main content

Module frame

Module frame 

Source

Modules§

frame_flags
Persistent flags stored in FrameMeta.

Structs§

FrameMeta
Intriside metadata for a physical frame.
FrameRangeInclusive
Iterator over an inclusive range of physical frames
PhysFrame
Physical frame (4KB aligned physical memory)

Enums§

AllocError
Frame allocation errors

Constants§

FRAME_META_ALIGN
FRAME_META_LINK_NONE
FRAME_META_SIZE
PAGE_SIZE

Traits§

FrameAllocator
Frame allocator trait

Functions§

get_meta
Get the metadata for a given physical frame.
init_metadata_array
Initialize the global metadata array for all physical frames.
metadata_size_for
The metadata array size for ram_size bytes, rounded up to the nearest page since each frame has a dedicated metadata entry. @param ram_size Total RAM size to be covered by the metadata (in bytes).