Static-heap allocator APIs.
More...
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
|
| enum | mem_state_t { MEM_STATE_FREE = 0
, MEM_STATE_BUSY
} |
Static-heap allocator APIs.
- Author
- Snoopy3921 - AK Foundation
- Date
- 2026/05/08
Definition in file memory.h.
◆ mem_state_t
◆ akos_memory_free()
| void akos_memory_free |
( |
void * | p_addr | ) |
|
Free previously allocated memory block.
- Parameters
-
Free previously allocated memory block.
- Parameters
-
Definition at line 139 of file memory.c.
◆ akos_memory_malloc()
| void * akos_memory_malloc |
( |
size_t | size | ) |
|
Allocate memory from OS heap.
- Parameters
-
| size | Requested size in bytes. |
- Returns
- Pointer to allocated block, or NULL on failure.
Allocate memory from OS heap.
- Parameters
-
| size | Requested size in bytes. |
- Returns
- Pointer to payload, or NULL if no suitable block.
Definition at line 65 of file memory.c.