Skip to main content

Crate frame_alloc

Crate frame_alloc 

Source

Structs§

DefaultGates
Default, production gate values.
DepotAllocator
A per-CPU magazine cache with a shared depot tier, over a backing physical allocator. This extends MagazineAllocator with a second, shared cache tier between the per-CPU magazines and the backend.
NoCpuId
Default implementation: routes everything to index 0.
NoInterruptControl
The default InterruptControl: a no-op. Interrupts are never touched, so it is not safe to call from an interrupt handler.
PageSize
A power-of-two page size, stored as a bit-shift (log2 of bytes).
PhysRange
A physically-contiguous, base-frame-aligned range of usable RAM.
RegionedAllocator
A wrapper that routes over REGIONS disjoint physical spans, one unmodified inner allocator A per span.
SummaryBuddyAllocator
A lock-free, bitmap-only buddy allocator with a two-level summary bitmap that carves its bitmap out of the managed physical memory region at init time.

Enums§

AllocError
InitError
Structured failure reason for RegionInit::try_init.

Traits§

CpuId
Strategy for mapping the calling CPU to a slot index.
GateConfig
Compile-time tuning of the two summary-scan gates.
InterruptControl
Strategy for disabling and restoring local (per-CPU) interrupts.
PhysicalAllocator
Trait for physical frame allocators.
Provenance
Strategy for obtaining and relinquishing compiler provenance on physical frame pointers.
RegionInit
Memory-map-aware initialisation interface for physical frame allocators.