aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/kmalloc.h
blob: a4098650c7a7bb358b0408c27f41e76ba5a30bcc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

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

// Kernel memory allocator : one slab allocator for shared memory
// Thread-safe.

void kmalloc_setup();

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

/* vim: set ts=4 sw=4 tw=0 noet :*/