KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
mm.h File Reference

Memory management routines. More...

#include <kos/cdefs.h>
#include <stddef.h>

Go to the source code of this file.

Functions

int mm_init (void)
 Initialize the memory management system.
 
void * mm_sbrk (size_t increment)
 Request more core memory from the system.
 

Detailed Description

Memory management routines.

Author
Paul Cercueil

Function Documentation

◆ mm_init()

int mm_init ( void )

Initialize the memory management system.

Return values
0On success (no error conditions defined).

◆ mm_sbrk()

void * mm_sbrk ( size_t increment)

Request more core memory from the system.

Parameters
incrementThe number of bytes requested.
Returns
A pointer to the memory.
Note
This function will panic if no memory is available.