Module heap

Source
Expand description

Manages the kernel heap using slab or buddy allocation strategies.

Modulesยง

slab ๐Ÿ”’
Slabs for implementing the slab allocator.
slot ๐Ÿ”’
Heap slots for allocations.
slot_list ๐Ÿ”’
Implementation of the free heap slot list.

Macrosยง

abort_with_message ๐Ÿ”’

Structsยง

AllocDispatch ๐Ÿ”’
HeapSlot
A slot that will become or has been turned from a heap allocation.
SlabMeta
Frame metadata of a slab.
SlabSlotList
A singly-linked list of HeapSlots from super::Slabs.

Enumsยง

SlotInfo
The type and size of the heap slot that should be used for the allocation.

Staticsยง

HEAP_ALLOCATOR ๐Ÿ”’
__GLOBAL_HEAP_ALLOCATOR_REF ๐Ÿ”’ โš 
The reference to the global heap allocator generated by the crate::global_heap_allocator attribute.

Traitsยง

GlobalHeapAllocator
The trait for the global heap allocator.

Functionsยง

__GLOBAL_HEAP_SLOT_INFO_FROM_LAYOUT ๐Ÿ”’ โš 
Gets the size and type of heap slots to serve allocations of the layout. See crate::global_heap_allocator_slot_map.
get_global_heap_allocator ๐Ÿ”’
Gets the reference to the user-defined global heap allocator.
handle_alloc_error ๐Ÿ”’
slot_size_from_layout ๐Ÿ”’
Gets the size and type of heap slots to serve allocations of the layout.

Type Aliasesยง

Slab
A slab.