Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
Loading...
Searching...
No Matches
heap.h
Go to the documentation of this file.
1
/*
2
* Copyright 2025 dogtopus
3
* SPDX-License-Identifier: MIT
4
*/
5
17
18
#ifndef __OSDEP_HEAP_H__
19
#define __OSDEP_HEAP_H__
20
21
#include <
muteki/common.h
>
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
33
__attribute__((assume_aligned(8))) extern
void
*
osdep_heap_alloc
(
size_t
size);
34
41
size_t
osdep_heap_get_alloc_size
(const
void
*ptr);
42
49
extern
void
osdep_heap_free
(
void
*ptr);
50
58
extern
bool
osdep_heap_trace_start
(
void
);
59
67
extern
bool
osdep_heap_trace_stop
(
void
);
68
69
#ifdef __cplusplus
70
}
// extern "C"
71
#endif
72
73
#endif
// __OSDEP_HEAP_H__
common.h
Common include file for all muteki-shims headers.
osdep_heap_alloc
void * osdep_heap_alloc(size_t size)
Allocate and format mchx memchunk.
osdep_heap_trace_start
bool osdep_heap_trace_start(void)
Start the heap tracer.
osdep_heap_get_alloc_size
size_t osdep_heap_get_alloc_size(const void *ptr)
Get usable size of an allocated mchx memchunk.
osdep_heap_trace_stop
bool osdep_heap_trace_stop(void)
Stop the heap tracer.
osdep_heap_free
void osdep_heap_free(void *ptr)
Free a mchx memchunk.
include
osdep
heap.h
Generated by
1.18.0