zephyr::raw

Function k_mem_phys_addr

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

@brief Get physical address from virtual address.

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

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

@param virt Virtual address

@return Physical address.