aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/alloc.h
blob: 5658da7a7565740b4401f7000139041f6ffae118 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MELVIX_ALLOC_H
#define MELVIX_ALLOC_H

#define PREFIX(func) k ## func

int liballoc_lock();

int liballoc_unlock();

void *liballoc_alloc(size_t);

int liballoc_free(void *, size_t);

void *PREFIX(malloc)(size_t);

void *PREFIX(realloc)(void *, size_t);

void *PREFIX(calloc)(size_t, size_t);

void PREFIX(free)(void *);

#endif