Skip to main content

free

Function free 

Source
pub unsafe fn free(
    addr_space: &mut AddressSpace,
    virt: VirtAddr,
) -> Result<(), MmError>
Expand description

Free previously by [alloc] allocated memory and release all associated frames back into the buddy allocator

ยงSafety

The caller must ensure that no live code or data holds references into any address mapped within [virt, vma.end_addr) after this method call returns