Expand description
The Axvisor memory allocator.
Structs§
- Global
Allocator - The global allocator used by ArceOS.
- Global
Page - A RAII wrapper of contiguous 4K-sized pages.
- Usages
- Statistics of memory usages.
Enums§
- Usage
Kind - Kinds of memory usage for tracking.
Traits§
- Addr
Translator - Address translator used by allocators to reason about physical addresses.
Functions§
- global_
add_ memory - Add the given memory region to the global allocator. Users should ensure that the region is valid and not being used by others, so that the allocated memory is also valid.
- global_
allocator - Returns the reference to the global allocator.
- global_
init - Initializes the global allocator with the given memory region.