11#include <initializer_list>
34 static void setup_prefix(
const std::string &prefix,
int rank);
36 static void free(
void *ptr,
size_t length);
51 std::vector<size_t> packed = packed_init;
static int shm_cnt
Definition: memfd.h:27
std::string shm_name
Definition: memfd.h:28
static void setup_prefix(const std::string &prefix, int rank)
Definition: memfd.cpp:18
size_t offset
Definition: memfd.h:24
void * map_pointer(void *hint, size_t pos, size_t len)
Definition: memfd.cpp:53
static uint8_t * mmap_end
Definition: memfd.h:31
static void free(void *ptr, size_t length)
Definition: memfd.cpp:24
void * packed_pointer(const std::initializer_list< size_t > &packed_init)
Definition: memfd.h:50
MEMFD * duplicate(size_t offset)
Definition: memfd.cpp:97
size_t len
Definition: memfd.h:21
void * packed_pointer(const std::vector< size_t > &packed)
Definition: memfd.cpp:66
MEMFD(MEMFD *memfd)
Definition: memfd.h:38
static std::set< void * > allocated
Definition: memfd.h:32
void cleanup()
Definition: memfd.cpp:46
int ring_fd
Definition: memfd.h:22
long pagesize
Definition: memfd.h:23
static std::string shm_prefix
Definition: memfd.h:26