Expand description

This module implements Rust’s global allocator interface using UEFI’s memory allocation functions.

Enabling the alloc optional feature in your app will allow you to use Rust’s higher-level data structures, like boxes, vectors, hash maps, linked lists and so on.

Usage

Call the init function with a reference to the boot services table. Failure to do so before calling a memory allocating function will panic.

Call the exit_boot_services function before exiting UEFI boot services. Failure to do so will turn subsequent allocation into undefined behaviour.

Structs

Allocator which uses the UEFI pool allocation functions.

Functions

Notify the allocator library that boot services are not safe to call anymore

Initializes the allocator.