pub unsafe extern "C" fn k_mem_unmap_phys_bare(
virt: *mut u8,
size: usize,
)
Expand description
Unmap a virtual memory region from kernel’s virtual address space.
This function is intended to be used by drivers and early boot routines where temporary memory mappings need to be made. This allows these memory mappings to be discarded once they are no longer needed.
This function alters the active page tables in the area reserved for the kernel.
This will align the input parameters to page boundaries so that this can be used with the virtual address as returned by k_mem_map_phys_bare().
This API is only available if CONFIG_MMU is enabled.
It is highly discouraged to use this function to unmap memory mappings. It may conflict with anonymous memory mappings and demand paging and produce undefined behavior. Do not use this unless you know exactly what you are doing.
This API is part of infrastructure still under development and may change.
@param virt Starting address of the virtual address region to be unmapped. @param size Size of the virtual address region