File memory.cpp

namespace faabric
namespace util

Functions

void mergeManyDirtyPages(std::vector<char> &dest, const std::vector<std::vector<char>> &source)
void mergeDirtyPages(std::vector<char> &dest, const std::vector<char> &source)
bool isPageAligned(const void *ptr)
size_t getRequiredHostPages(size_t nBytes)
size_t getRequiredHostPagesRoundDown(size_t nBytes)
size_t alignOffsetDown(size_t offset)
AlignedChunk getPageAlignedChunk(long offset, long length)
MemoryRegion allocatePrivateMemory(size_t size)
MemoryRegion allocateSharedMemory(size_t size)
MemoryRegion allocateVirtualMemory(size_t size)
void claimVirtualMemory(std::span<uint8_t> region)
void mapMemoryPrivate(std::span<uint8_t> target, int fd)
void mapMemoryShared(std::span<uint8_t> target, int fd)
void resizeFd(int fd, size_t size)
void writeToFd(int fd, off_t offset, std::span<const uint8_t> data)
int createFd(size_t size, const std::string &fdLabel)
void appendDataToFd(int fd, std::span<uint8_t> data)
MemoryRegion doAlloc(size_t size, int prot, int flags)
void mapMemory(std::span<uint8_t> target, int fd, int flags)