Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
Functions | |
void * | k_mem_map_impl (uintptr_t phys, size_t size, uint32_t flags, bool is_anon) |
Map memory into virtual address space with guard pages. | |
void | k_mem_unmap_impl (void *addr, size_t size, bool is_anon) |
Un-map mapped memory. | |
#include <zephyr/kernel/internal/mm.h>
Map memory into virtual address space with guard pages.
This maps memory into virtual address space with a preceding and a succeeding guard pages.
phys | Physical address base of the memory region if not requesting anonymous memory. Must be page-aligned. |
size | Size of the memory mapping. This must be page-aligned. |
flags | K_MEM_PERM_*, K_MEM_MAP_* control flags. |
is_anon | True is requesting mapping with anonymous memory. |
#include <zephyr/kernel/internal/mm.h>
Un-map mapped memory.
This removes the memory mappings for the provided page-aligned region, and the two guard pages surrounding the region.
addr | Page-aligned memory region base virtual address |
size | Page-aligned memory region size |
is_anon | True if the mapped memory is from anonymous memory. |