|
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.
|
Kernel heap allocator for variable-sized dynamic memory. More...
#include <stddef.h>

Go to the source code of this file.
Functions | |
| void * | kmalloc (size_t size) |
| Allocates a block of memory from the kernel heap. | |
| void | kfree (void *ptr) |
| Frees a block of memory previously returned by kmalloc(). | |
Kernel heap allocator for variable-sized dynamic memory.
This module provides the kernel-side dynamic memory API. It hands out variable-sized allocations from the kernel heap and returns them for reuse, layering on top of the physical page allocator.
| void kfree | ( | void * | ptr | ) |
| void * kmalloc | ( | size_t | size | ) |
Allocates a block of memory from the kernel heap.
Reserves at least size bytes of contiguous memory for the caller.
| size | The number of bytes to allocate. |