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

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

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

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

#endif