Furi: memory management API and glue. More...
Go to the source code of this file.
Macros | |
#define | FURI_MEMMGR_GUARD 1 |
Functions | |
size_t | memmgr_get_free_heap (void) |
Get free heap size. | |
size_t | memmgr_get_total_heap (void) |
Get total heap size. | |
size_t | memmgr_get_minimum_free_heap (void) |
Get heap watermark. | |
void * | aligned_malloc (size_t size, size_t alignment) |
An aligned version of malloc, used when you need to get the aligned space on the heap Freeing the received address is performed ONLY through the aligned_free function. | |
void | aligned_free (void *p) |
Freed space obtained through the aligned_malloc function. | |
void * | memmgr_alloc_from_pool (size_t size) |
Allocate memory from separate memory pool. | |
size_t | memmgr_pool_get_free (void) |
Get free memory pool size. | |
size_t | memmgr_pool_get_max_block (void) |
Get max free block size from memory pool. | |
Furi: memory management API and glue.
void aligned_free | ( | void * | p | ) |
Freed space obtained through the aligned_malloc function.
p | pointer to result of aligned_malloc |
void * aligned_malloc | ( | size_t | size, |
size_t | alignment ) |
An aligned version of malloc, used when you need to get the aligned space on the heap Freeing the received address is performed ONLY through the aligned_free function.
size | |
alignment |
void * memmgr_alloc_from_pool | ( | size_t | size | ) |
Allocate memory from separate memory pool.
That memory can't be freed.
size |
size_t memmgr_get_free_heap | ( | void | ) |
Get free heap size.
size_t memmgr_get_minimum_free_heap | ( | void | ) |
Get heap watermark.
size_t memmgr_get_total_heap | ( | void | ) |
Get total heap size.
size_t memmgr_pool_get_free | ( | void | ) |
Get free memory pool size.
size_t memmgr_pool_get_max_block | ( | void | ) |
Get max free block size from memory pool.