/// Create a FrameAllocator from the passed memory map.
///
/// This function is unsafe because the caller must guarantee that the passed
/// memory map is valid. The main requirement is that all frames that are marked
/// as `USABLE` in it are really unused.
Create a FrameAllocator from the passed memory map.
This function is unsafe because the caller must guarantee that the passed
memory map is valid. The main requirement is that all frames that are marked
as `USABLE` in it are really unused.
Create a FrameAllocator from the passed memory map . This function is unsafe because the caller must guarantee that the passed memory map is valid . The main requirement is that all frames that are marked as ` USABLE ` in it are really unused .
pub unsafe fn init(memory_regions: &'static MemoryRegions) -> Self {
        BootInfoFrameAllocator {
            memory_regions,
            next: 0,
        }
    }
pub unsafe fn init ( memory_regions : & ' static MemoryRegions ) -> Self { BootInfoFrameAllocator { memory_regions , next : 0 , } }
Create a FrameAllocator from the passed memory map.
Create a FrameAllocator from the passed memory map .
memory_regions
&'static MemoryRegions