KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
mm.h
Go to the documentation of this file.
1/* KallistiOS ##version##
2
3 kos/mm.h
4 Copyright (C) 2026 Paul Cercueil
5
6 Memory management routines
7*/
8
9/** \file kos/mm.h
10 \brief Memory management routines.
11 \ingroup mm
12
13 \author Paul Cercueil
14*/
15
16#ifndef __KOS_MM_H
17#define __KOS_MM_H
18
19#include <kos/cdefs.h>
20__BEGIN_DECLS
21
22#include <stddef.h>
23
24/** \brief Initialize the memory management system.
25 \ingroup mm
26
27 \retval 0 On success (no error conditions defined).
28*/
29int mm_init(void);
30
31/** \brief Request more core memory from the system.
32 \ingroup mm
33
34 \param increment The number of bytes requested.
35 \return A pointer to the memory.
36 \note This function will panic if no memory is available.
37*/
38void *mm_sbrk(size_t increment);
39
40__END_DECLS
41#endif /* __KOS_MM_H */
Various common macros used throughout the codebase.
int mm_init(void)
Initialize the memory management system.
void * mm_sbrk(size_t increment)
Request more core memory from the system.