aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/memory/alloc.h
blob: 3ddc8d8ef5ad9a9d02f20953ca71aad26d78a0ba (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