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ยง
- Alloc
Dispatch ๐ - Heap
Slot - A slot that will become or has been turned from a heap allocation.
- Slab
Meta - Frame metadata of a slab.
- Slab
Slot List - A singly-linked list of
HeapSlot
s fromsuper::Slab
s.
Enumsยง
- Slot
Info - 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ยง
- Global
Heap Allocator - 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.