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