Crate axalloc

source ·
Expand description

ArceOS global memory allocator.

It provides GlobalAllocator, which implements the trait core::alloc::GlobalAlloc. A static global variable of type GlobalAllocator is defined with the #[global_allocator] attribute, to be registered as the standard library’s default allocator.

Structs

  • The global allocator used by ArceOS.
  • A RAII wrapper of contiguous 4K-sized pages.
  • A safe wrapper of a single 4K page. It holds the page’s VirtAddr (PhysAddr + offset)

Functions