zephyr::raw

Function k_mem_virt_addr

source
pub unsafe extern "C" fn k_mem_virt_addr(phys: usize) -> *mut c_void
Expand description

@brief Get virtual address from physical address.

This only works in the kernel’s permanent mapping of RAM.

Just like K_MEM_VIRT_ADDR() but with type safety and assertions.

@param phys Physical address

@return Virtual address.