|
FreeNOS
|
Memory allocator library for managing the dynamic heap and virtual memory mappings. More...
Data Structures | |
| class | Allocator |
| Memory Allocator. More... | |
| class | BitAllocator |
| Bit memory allocator. More... | |
| class | BubbleAllocator |
| Keeps growing allocated memory, and can't actually free memory (hence the name). More... | |
| class | PoolAllocator |
| Memory allocator which uses pools that each manage same-sized objects. More... | |
| class | SplitAllocator |
| Allocator which separates kernel mapped memory at virtual and physical addresses. More... | |
Dynamic memory allocation. | |
| void * | operator new (__SIZE_TYPE__ sz) |
| Allocate new memory. More... | |
| void * | operator new[] (__SIZE_TYPE__ sz) |
| Allocate memory for an array. More... | |
| void | operator delete (void *mem) |
| Free memory back to the current Allocator. More... | |
| void | operator delete[] (void *mem) |
| Uses the Heap class to free memory, with the delete[] operator. More... | |
| void * | operator new (__SIZE_TYPE__ sz, Address addr) |
| Let the new() operator return the given memory address. More... | |
Memory allocator library for managing the dynamic heap and virtual memory mappings.
|
inline |
Free memory back to the current Allocator.
| mem | Points to memory to release. |
Definition at line 243 of file Allocator.h.
References Allocator::getDefault(), and Allocator::release().
|
inline |
Uses the Heap class to free memory, with the delete[] operator.
| mem | Points to memory to release. |
Definition at line 253 of file Allocator.h.
References Allocator::getDefault(), and Allocator::release().
|
inline |
Allocate new memory.
| sz | Amount of memory to allocate. |
Definition at line 207 of file Allocator.h.
References Allocator::Range::address, Allocator::Range::alignment, Allocator::allocate(), Allocator::getDefault(), NULL, Allocator::Range::size, and Allocator::Success.
|
inline |
Let the new() operator return the given memory address.
| sz | Size to allocate (ignored). |
| addr | Memory address to return. |
Definition at line 266 of file Allocator.h.
|
inline |
Allocate memory for an array.
| sz | Amount of memory to allocate. |
Definition at line 225 of file Allocator.h.
References Allocator::Range::address, Allocator::Range::alignment, Allocator::allocate(), Allocator::getDefault(), NULL, Allocator::Range::size, and Allocator::Success.
1.8.17