pub unsafe extern "C" fn k_mem_unmap_phys_guard(
addr: *mut c_void,
size: usize,
is_anon: bool,
)
Expand description
Un-map memory mapped via k_mem_map_phys_guard().
This removes the memory mappings for the provided page-aligned region, and the two guard pages surrounding the region.
This function alters the active page tables in the area reserved for the kernel.
@see k_mem_unmap() for additional information if called via that.
@note Calling this function on a region which was not mapped via k_mem_map_phys_guard() to begin with is undefined behavior.
@param addr Page-aligned memory region base virtual address @param size Page-aligned memory region size @param is_anon True if the mapped memory is from anonymous memory.