F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/Types/MmapAllocator.hpp>
Public Member Functions | |
MmapAllocator () | |
virtual | ~MmapAllocator () |
Destructor with no arguments. More... | |
void * | allocate (const NATIVE_UINT_TYPE identifier, NATIVE_UINT_TYPE &size, bool &recoverable) |
void | deallocate (const NATIVE_UINT_TYPE identifier, void *ptr) |
Additional Inherited Members | |
Protected Member Functions inherited from Fw::MemAllocator | |
MemAllocator () | |
virtual | ~MemAllocator () |
Fw::MmapAllocator is an implementation of the Fw::MemAllocator interface that back memory with a read and write capable anonymous memory mapped region. This class is currently not useful for mapping to a file.
Definition at line 22 of file MmapAllocator.hpp.
Fw::MmapAllocator::MmapAllocator | ( | ) |
Constructor with no arguments
Definition at line 20 of file MmapAllocator.cpp.
|
virtual |
Destructor with no arguments.
Definition at line 22 of file MmapAllocator.cpp.
|
virtual |
Allocate memory using the mmap allocator
identifier | identifier to use with allocation |
size | size of memory to be allocated |
recoverable | (output) is this memory recoverable after a reset. Always false for mmap. |
Implements Fw::MemAllocator.
Definition at line 24 of file MmapAllocator.cpp.
|
virtual |
Deallocation of memory using the mmap allocator
identifier | identifier used at allocation |
ptr | pointer to memory being deallocated |
Implements Fw::MemAllocator.
Definition at line 38 of file MmapAllocator.cpp.