Modules§
Structs§
- A dummy allocator that does not perform any actual allocation or deallocation. This is useful for handling cases where no memory allocation is required or should be allowed.
- A wrapper around a
spin::Mutex
to provide safe, locked access to the inner allocator. TheLocked
type ensures that only one thread can access the allocator at a time.
Constants§
- The size of the heap in bytes.
- The start address of the heap in memory.
Functions§
- Initializes the heap by mapping the required memory pages and setting up the allocator. This function maps a range of pages for the heap, allocates frames, and sets up the heap allocator.