Flipper Zero Firmware
Loading...
Searching...
No Matches
memmgr.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <stddef.h>
9#include <stdlib.h>
10#include <string.h>
11#include "check.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17// define for test case "link against furi memmgr"
18#define FURI_MEMMGR_GUARD 1
19
24size_t memmgr_get_free_heap(void);
25
30size_t memmgr_get_total_heap(void);
31
37
45void* aligned_malloc(size_t size, size_t alignment);
46
51void aligned_free(void* p);
52
59void* memmgr_alloc_from_pool(size_t size);
60
66size_t memmgr_pool_get_free(void);
67
73size_t memmgr_pool_get_max_block(void);
74
75#ifdef __cplusplus
76}
77#endif
Furi crash and assert functions.
size_t memmgr_get_free_heap(void)
Get free heap size.
Definition memmgr.c:49
size_t memmgr_get_minimum_free_heap(void)
Get heap watermark.
Definition memmgr.c:57
size_t memmgr_get_total_heap(void)
Get total heap size.
Definition memmgr.c:53
size_t memmgr_pool_get_max_block(void)
Get max free block size from memory pool.
Definition memmgr.c:92
size_t memmgr_pool_get_free(void)
Get free memory pool size.
Definition memmgr.c:88
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 rec...
Definition memmgr.c:96
void * memmgr_alloc_from_pool(size_t size)
Allocate memory from separate memory pool.
Definition memmgr.c:81
void aligned_free(void *p)
Freed space obtained through the aligned_malloc function.
Definition memmgr.c:108
Furi string primitive.