Expand description
Kernel heap allocator
Implements a slab allocator for the kernel heap with size classes and per-CPU caches for performance.
Structs§
- Heap
Stats - Heap statistics
- Slab
Allocator - 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