Brick Library 0.1
Performance-portable stencil datalayout & codegen
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
MEMFD Class Reference

#include <memfd.h>

Public Member Functions

 MEMFD (MEMFD *memfd)
 
 MEMFD (size_t length)
 
void * map_pointer (void *hint, size_t pos, size_t len)
 
void * packed_pointer (const std::vector< size_t > &packed)
 
void * packed_pointer (const std::initializer_list< size_t > &packed_init)
 
MEMFDduplicate (size_t offset)
 
void cleanup ()
 

Static Public Member Functions

static void setup_prefix (const std::string &prefix, int rank)
 
static void free (void *ptr, size_t length)
 

Static Public Attributes

static uint8_t * mmap_end = (uint8_t *) 0x600000000000L
 
static std::set< void * > allocated
 

Private Attributes

size_t len
 
int ring_fd
 
long pagesize
 
size_t offset
 
std::string shm_name
 

Static Private Attributes

static std::string shm_prefix = "noname"
 
static int shm_cnt = 0
 

Constructor & Destructor Documentation

◆ MEMFD() [1/2]

MEMFD::MEMFD ( MEMFD memfd)
inline

◆ MEMFD() [2/2]

MEMFD::MEMFD ( size_t  length)

Member Function Documentation

◆ cleanup()

void MEMFD::cleanup ( )

◆ duplicate()

MEMFD * MEMFD::duplicate ( size_t  offset)

◆ free()

void MEMFD::free ( void *  ptr,
size_t  length 
)
static

◆ map_pointer()

void * MEMFD::map_pointer ( void *  hint,
size_t  pos,
size_t  len 
)

◆ packed_pointer() [1/2]

void * MEMFD::packed_pointer ( const std::initializer_list< size_t > &  packed_init)
inline
Here is the call graph for this function:

◆ packed_pointer() [2/2]

void * MEMFD::packed_pointer ( const std::vector< size_t > &  packed)
Here is the call graph for this function:

◆ setup_prefix()

void MEMFD::setup_prefix ( const std::string &  prefix,
int  rank 
)
static

Member Data Documentation

◆ allocated

std::set< void * > MEMFD::allocated
static

◆ len

size_t MEMFD::len
private

◆ mmap_end

uint8_t * MEMFD::mmap_end = (uint8_t *) 0x600000000000L
static

◆ offset

size_t MEMFD::offset
private

◆ pagesize

long MEMFD::pagesize
private

◆ ring_fd

int MEMFD::ring_fd
private

◆ shm_cnt

int MEMFD::shm_cnt = 0
staticprivate

◆ shm_name

std::string MEMFD::shm_name
private

◆ shm_prefix

std::string MEMFD::shm_prefix = "noname"
staticprivate

The documentation for this class was generated from the following files: