diff options
author | Marvin Borner | 2019-10-25 23:26:29 +0200 |
---|---|---|
committer | Marvin Borner | 2019-10-25 23:26:29 +0200 |
commit | 5a4db78897063e5b09a676b02fec3ba4a2965921 (patch) | |
tree | ba9e1bf1ebc31ba3b541fd3936655c7a70e8ef61 /src/kernel/lib/alloc.h | |
parent | d97071a061df629fa8ee7a29cc7c0b23ac304506 (diff) |
Rewrite of paging and alloc functions
Still not working though :/
Diffstat (limited to 'src/kernel/lib/alloc.h')
-rw-r--r-- | src/kernel/lib/alloc.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/kernel/lib/alloc.h b/src/kernel/lib/alloc.h new file mode 100644 index 0000000..5658da7 --- /dev/null +++ b/src/kernel/lib/alloc.h @@ -0,0 +1,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 |