⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module heap

Module heap 

Source
Expand description

Kernel heap allocator

Implements a slab allocator for the kernel heap with size classes and per-CPU caches for performance.

Structs§

HeapStats
Heap statistics
SlabAllocator
Slab allocator for efficient small allocations (x86_64 only, uses LockedHeap)

Constants§

HEAP_SIZE
Kernel heap size
HEAP_START
Kernel heap start address (re-exported from architecture module)

Functions§

get_heap_stats
Get current heap statistics (x86_64 only).
heap_end_vaddr
Return the virtual address of the last byte of the HEAP_MEMORY array.
init
Initialize the kernel heap