![]() |
Max OS 0.3
|
Defines a MemoryManager class for handling memory allocation and deallocation. More...
Go to the source code of this file.
Classes | |
| struct | MaxOS::memory::MemoryChunk |
| A span of memory in the heap, can be allocated or free. Used as a node in a doubly linked list. More... | |
| class | MaxOS::memory::MemoryManager |
| Handles memory allocation and deallocation. More... | |
Functions | |
| void * | operator new (size_t size) throw () |
| Overloaded new operator, allocates memory using the KERNEL memory manager. | |
| void * | operator new[] (size_t size) throw () |
| Overloaded new operator, allocates memory using the KERNEL memory manager. | |
| void * | operator new (size_t size, void *pointer) |
| Overloaded new operator, allocates memory using the KERNEL memory manager. | |
| void * | operator new[] (size_t size, void *pointer) |
| Overloaded new operator, allocates memory using the KERNEL memory manager. | |
| void | operator delete (void *pointer) |
| Overloaded delete operator, frees memory using the KERNEL memory manager. | |
| void | operator delete[] (void *pointer) |
| Overloaded delete operator, frees memory using the KERNEL memory manager. | |
| void | operator delete (void *pointer, size_t size) |
| Overloaded delete operator, frees memory using the KERNEL memory manager. | |
| void | operator delete[] (void *pointer, size_t size) |
| Overloaded delete operator, frees memory using the KERNEL memory manager. | |
Variables | |
| constexpr size_t | MaxOS::memory::CHUNK_ALIGNMENT = 0x10 |
| How many bytes the chunks should be a multiple of (round up to this) | |
Defines a MemoryManager class for handling memory allocation and deallocation.
Definition in file memorymanagement.h.
Overloaded delete operator, frees memory using the KERNEL memory manager.
| pointer | The pointer to the memory to free |
Definition at line 379 of file memorymanagement.cpp.
References MaxOS::memory::MemoryManager::kfree().
Overloaded delete operator, frees memory using the KERNEL memory manager.
| pointer | The pointer to the memory to free |
| size | The size of the memory to free - ignored in this implementation |
Definition at line 402 of file memorymanagement.cpp.
References MaxOS::memory::MemoryManager::kfree().
Overloaded delete operator, frees memory using the KERNEL memory manager.
| pointer | The pointer to the memory to free |
Definition at line 390 of file memorymanagement.cpp.
References MaxOS::memory::MemoryManager::kfree().
Overloaded delete operator, frees memory using the KERNEL memory manager.
| pointer | The pointer to the memory to free |
| size | The size of the memory to free - ignored in this implementation |
Definition at line 414 of file memorymanagement.cpp.
References MaxOS::memory::MemoryManager::kfree().
Overloaded new operator, allocates memory using the KERNEL memory manager.
| size | The size of the memory to allocate |
Definition at line 331 of file memorymanagement.cpp.
References MaxOS::memory::MemoryManager::kmalloc().
Overloaded new operator, allocates memory using the KERNEL memory manager.
| pointer | The pointer to the memory to allocate |
| size | The size of the memory to free - ignored in this implementation |
Definition at line 356 of file memorymanagement.cpp.
Overloaded new operator, allocates memory using the KERNEL memory manager.
| size | The size of the memory to allocate |
Definition at line 343 of file memorymanagement.cpp.
References MaxOS::memory::MemoryManager::kmalloc().
Overloaded new operator, allocates memory using the KERNEL memory manager.
| size | The size of the memory to free - ignored in this implementation |
| pointer | The pointer to the memory to allocate |
Definition at line 368 of file memorymanagement.cpp.
|
constexpr |
How many bytes the chunks should be a multiple of (round up to this)
Definition at line 34 of file memorymanagement.h.
Referenced by MaxOS::memory::MemoryManager::align().