Expand description
Various allocator algorithms in a unified interface.
There are three types of allocators:
ByteAllocator: Byte-granularity memory allocator. (e.g.,BuddyByteAllocator,SlabByteAllocator)PageAllocator: Page-granularity memory allocator. (e.g.,BitmapPageAllocator)IdAllocator: Used to allocate unique IDs.
Structs
- A page-granularity memory allocator based on the bitmap_allocator.
- A byte-granularity memory allocator based on the buddy_system_allocator.
- A byte-granularity memory allocator based on the slab allocator.
Enums
- The error type used for allocation.
Traits
- The base allocator inherited by other allocators.
- Byte-granularity allocator.
- Used to allocate unique IDs (e.g., thread ID).
- Page-granularity allocator.
Type Definitions
- A
Resulttype withAllocErroras the error type.