summaryrefslogtreecommitdiff
path: root/include/libk/kmalloc.h
blob: 6573d28e3977a9a598ff512e79d42b8c900a40cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef LIBK_KMALLOC_H
#define LIBK_KMALLOC_H

#include <stdint.h>
#include <stddef.h>

struct mem_block {
        void *start;
        size_t size;
        int alloc;
        struct mem_block *next;
        struct mem_block *prev;
};

void kmalloc_init(void);
void* kmalloc(size_t sz);
void kfree(void *ptr);

#endif