git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
dynamic memory manager (malloc & free)
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
mm
/
dmm.h
1
#ifndef __LUNAIX_DMM_H
2
#define __LUNAIX_DMM_H
3
// Dynamic Memory (i.e., heap) Manager
4
5
#include <stddef.h>
6
7
#define HEAP_INIT_SIZE 4096
8
9
int
10
dmm_init();
11
12
int
13
lxsbrk(void* addr);
14
void*
15
lxbrk(size_t size);
16
17
void*
18
lx_malloc(size_t size);
19
20
void
21
lx_free(void* ptr);
22
23
#endif /* __LUNAIX_DMM_H */