esp_mmu_map_reserve_block_with_caps() function
Reserve a consecutive external virtual memory block, with given capabilities and size
Arguments
size
Size, in bytes, the amount of memory to find
caps
Bitwise OR of `mmu_mem_caps_t` flags indicating the memory block capability
target
Target memory type. See `mmu_target_t`
out_ptr
Pointer to start address of the memory block that is reserved
Return value
- ESP_OK: On success - ESP_ERR_INVALID_ARG: Invalid arguments, could be wrong caps makeup, or null pointer - ESP_ERR_NOT_FOUND: Didn't find enough memory with give caps
Notes
This private API shall be only called internally during startup stage. DO NOT call this API in your applications
esp_mmu_map_reserve_block_with_caps() is called by 1 function and calls 7 functions:
![]()
esp_mmu_map_reserve_block_with_caps()
esp_mmu_map_reserve_block_with_caps() reads 14 variables and writes 2 variables:
![]()
esp_mmu_map_reserve_block_with_caps()