muteki
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
18#ifndef __OSDEP_HEAP_H__
19#define __OSDEP_HEAP_H__
20
21#include <muteki/common.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
33__attribute__((assume_aligned(8))) extern void *osdep_heap_alloc(size_t size);
34
41size_t osdep_heap_get_alloc_size(const void *ptr);
42
49extern void osdep_heap_free(void *ptr);
50
58extern bool osdep_heap_trace_start(void);
59
67extern bool osdep_heap_trace_stop(void);
68
69#ifdef __cplusplus
70} // extern "C"
71#endif
72
73#endif // __OSDEP_HEAP_H__
Common include file for all muteki-shims headers.
void * osdep_heap_alloc(size_t size)
Allocate and format mchx memchunk.
bool osdep_heap_trace_start(void)
Start the heap tracer.
size_t osdep_heap_get_alloc_size(const void *ptr)
Get usable size of an allocated mchx memchunk.
bool osdep_heap_trace_stop(void)
Stop the heap tracer.
void osdep_heap_free(void *ptr)
Free a mchx memchunk.