Module alloc

Module alloc 

Source
Expand description

UEFI Memory Allocators

This module provides a memory allocator that integrates with the UEFI pool allocator. It exports an Allocator type that wraps a System-Table together with a UEFI memory type and forwards memory requests to the UEFI pool allocator.

The allocator implements the core::alloc::Allocator API defined by the rust standard library. Furthermore, as an alternative to this unstable standard library trait, raw alloc and dealloc functions are provided that map to their equivalents from the raw module.

The core::alloc::Allocator trait is only implemented if the allocator_api feature is enabled. This requires a nightly / unstable compiler. If the feature is not enabled, only the raw interface is available.

Structsยง

Allocator
Memory Allocator