Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Memory Management. More...
Modules | |
Memory Banks Driver APIs | |
Memory Banks Driver APIs. | |
Memory Blocks APIs | |
Memory Management Driver APIs | |
Memory Management Driver APIs. | |
Functions | |
bool | sys_mm_is_phys_addr_in_range (uintptr_t phys) |
Check if a physical address is within range of physical memory. | |
bool | sys_mm_is_virt_addr_in_range (void *virt) |
Check if a virtual address is within range of virtual memory. | |
Memory Management.
#include <include/zephyr/sys/mem_manage.h>
Check if a physical address is within range of physical memory.
This checks if the physical address (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
).
CONFIG_KERNEL_VM_USE_CUSTOM_MEM_RANGE_CHECK
is enabled.phys | Physical address to be checked. |
bool sys_mm_is_virt_addr_in_range | ( | void * | virt | ) |
#include <include/zephyr/sys/mem_manage.h>
Check if a virtual address is within range of virtual memory.
This checks if the virtual address (virt
) is within permissible range, e.g. between :kconfig:option:CONFIG_KERNEL_VM_BASE
and (:kconfig:option:CONFIG_KERNEL_VM_BASE
+ :kconfig:option:CONFIG_KERNEL_VM_SIZE
).
CONFIG_KERNEL_VM_USE_CUSTOM_MEM_RANGE_CHECK
is enabled.virt | Virtual address to be checked. |