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

#include <stddef.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