MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / init

Method init

src/mem.rs:153–160  ·  view source on GitHub ↗

This creates a FrameAllocator from a memory map.

(memmap: &'static MemoryMap)

Source from the content-addressed store, hash-verified

151{
152 // This creates a FrameAllocator from a memory map.
153 pub unsafe fn init(memmap: &'static MemoryMap) -> Self
154 {
155 BootInfoFrameAllocator
156 {
157 memmap,
158 next: 0,
159 }
160 }
161
162 // This returns an iterator over usable frames, as specified by the memory map.
163 fn usableframes(&self) -> impl Iterator<Item = PhysFrame>

Callers 3

initFunction · 0.45
newMethod · 0.45
initFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected