Skip to main content

Module heap

Module heap 

Source

Structs§

KernelHeapFailureSnapshot
LockedHeap
SlabDiagSnapshot

Enums§

KernelHeapAllocError
KernelHeapBackend

Constants§

SLAB_NUM_CLASSES
Number of slab size classes.

Functions§

alloc_kernel_heap
Compatibility facade over the current global kernel heap policy.
dealloc_kernel_heap
Free memory previously returned by alloc_kernel_heap.
debug_register_slab_trace
Register slab lock for E9 trace (call from init).
debug_slab_lock_addr
Returns the slab lock address for deadlock tracing.
dump_diagnostics
Dump heap and buddy allocator diagnostics to the serial console.
last_heap_failure_snapshot
slab_blocks_per_page
Number of blocks that fit in one buddy page for slab class ci.
slab_class_alignment
Guaranteed alignment in bytes for slab class ci.
slab_class_size
Block size in bytes for slab class ci.
slab_diag_snapshot
slab_page_in_partial_list
Returns whether the slab page at page_base is currently present in the partial-page list for class ci.
try_alloc_kernel_heap
Fallible heap entry point with explicit backend-aware errors.