zephyr::raw

Function sys_mm_is_phys_addr_in_range

source
pub unsafe extern "C" fn sys_mm_is_phys_addr_in_range(
    phys: usize,
) -> bool
Expand description

@brief Check if a physical address is within range of physical memory.

This checks if the physical address (@p virt) is within permissible range, e.g. between :kconfig:option:CONFIG_SRAM_BASE_ADDRESS and (:kconfig:option:CONFIG_SRAM_BASE_ADDRESS + :kconfig:option:CONFIG_SRAM_SIZE).

@note Only used if :kconfig:option:CONFIG_KERNEL_VM_USE_CUSTOM_MEM_RANGE_CHECK is enabled.

@param phys Physical address to be checked.

@return True if physical address is within range, false if not.