pub unsafe extern "C" fn sys_mm_is_virt_addr_in_range(
virt: *mut c_void,
) -> bool
Expand description
@brief Check if a virtual address is within range of virtual memory.
This checks if the virtual address (@p 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
).
@note Only used if
:kconfig:option:CONFIG_KERNEL_VM_USE_CUSTOM_MEM_RANGE_CHECK
is enabled.
@param virt Virtual address to be checked.
@return True if virtual address is within range, false if not.