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
*/
29
int
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
*/
38
void
*
mm_sbrk
(
size_t
increment);
39
40
__END_DECLS
41
#endif
/* __KOS_MM_H */
cdefs.h
Various common macros used throughout the codebase.
mm_init
int mm_init(void)
Initialize the memory management system.
mm_sbrk
void * mm_sbrk(size_t increment)
Request more core memory from the system.
include
kos
mm.h
Generated by
1.12.0