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

Method init

src/allocator/lnls.rs:54–57  ·  view source on GitHub ↗

Initialize allocator with specified heap bounds:

(&mut self, heap_start: usize, heap_size: usize)

Source from the content-addressed store, hash-verified

52
53 // Initialize allocator with specified heap bounds:
54 pub unsafe fn init(&mut self, heap_start: usize, heap_size: usize)
55 {
56 self.add_freergn(heap_start: usize, heap_size: usize)
57 }
58
59 // Add specified memreg to front of the list:
60 unsafe fn add_freergn(&mut self, addr: usize, size: usize)

Callers 1

init_heapFunction · 0.45

Calls 1

add_freergnMethod · 0.80

Tested by

no test coverage detected