GitOS
Operating system exercise
Loading...
Searching...
No Matches
kheap.h
Go to the documentation of this file.
1#pragma once
2#include <stddef.h>
3#include <stdint.h>
4
5int kheap_init(void* start_address, uint32_t size);
6void* kmalloc(size_t size);
7void* kzalloc(size_t size);
8void kfree(void* ptr);
uint16_t size
Definition gdt.h:0
uint32_t start_address
Definition gdt.h:1
void kfree(void *ptr)
Frees specified pointer.
Definition hkeap.c:59
void * kmalloc(size_t size)
Allocates specified size in heap.
Definition hkeap.c:32
int kheap_init(void *start_address, uint32_t size)
Initializes kernel heap.
Definition hkeap.c:16
void * kzalloc(size_t size)
Allocated specified size in heap and zeroes it.
Definition hkeap.c:43