zephyr::raw

Function k_mem_unmap

source
pub unsafe extern "C" fn k_mem_unmap(addr: *mut c_void, size: usize)
Expand description

Un-map mapped memory

This removes a memory mapping for the provided page-aligned region. Associated page frames will be free and the kernel may re-use the associated virtual address region. Any paged out data pages may be discarded.

Calling this function on a region which was not mapped to begin with is undefined behavior.

@param addr Page-aligned memory region base virtual address @param size Page-aligned memory region size