pub trait PageAllocatorProvider<const PAGE_SIZE: usize> {
// Required methods
fn allocate_pages(&mut self, pages: usize) -> Option<*mut u8>;
fn deallocate_pages(&mut self, pages: usize) -> bool;
}
Required Methods§
sourcefn allocate_pages(&mut self, pages: usize) -> Option<*mut u8>
fn allocate_pages(&mut self, pages: usize) -> Option<*mut u8>
Return the start address of the new allocated heap
sourcefn deallocate_pages(&mut self, pages: usize) -> bool
fn deallocate_pages(&mut self, pages: usize) -> bool
Deallocate pages from the end of the heap Return true if the deallocation was successful