marcel_os

Module allocator

Source

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. The Locked type ensures that only one thread can access the allocator at a time.

Constants§

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.