Kernelite 0.1.0
Kernelite is a minimalist, educational operating system kernel built from scratch. The project aims to recreate core components of the Linux architecture to explore the fundamentals of operating system design and hardware-software interaction.
Loading...
Searching...
No Matches
kalloc.h
Go to the documentation of this file.
1
13#ifndef ALLOCATOR_KALLOC_H
14#define ALLOCATOR_KALLOC_H
15
16#include <stddef.h>
17
27void *kmalloc(size_t size);
28
37void kfree(void *ptr);
38
39#ifdef RUN_TESTS
40
49void invalidate_kalloc_state(void);
50
51#endif /* RUN_TESTS */
52
53#endif /* ALLOCATOR_KALLOC_H */
void kfree(void *ptr)
Frees a block of memory previously returned by kmalloc().
Definition kalloc.c:304
void * kmalloc(size_t size)
Allocates a block of memory from the kernel heap.
Definition kalloc.c:259