154 void *
nvm_alloc(
size_t sz, uint32_t rid);
165 void *
nvm_calloc(
size_t nmemb,
size_t sz, uint32_t rid);
176 void *
nvm_realloc(
void *ptr,
size_t sz, uint32_t rid);
void NVM_CloseRegion(uint32_t rid)
Close a persistent region.
Definition: pregion_mgr_api.cpp:40
int isCacheLineAligned(void *p)
Determines if a memory location is aligned to a cache line.
Definition: pregion_mgr_api.cpp:106
uint32_t NVM_CreateRegion(const char *name, int flags)
Create a named persistent region.
Definition: pregion_mgr_api.cpp:35
int NVM_IsInRegion(void *ptr, size_t sz)
Determines if a memory location is within a region.
Definition: pregion_mgr_api.cpp:111
uint32_t NVM_FindOrCreateRegion(const char *name, int flags, int *is_created)
Create a persistent region with the provided name.
Definition: pregion_mgr_api.cpp:23
node * root
Definition: region_test.h:36
void NVM_SetRegionRoot(uint32_t rid, void *root)
Set the root pointer of an existing persistent region.
Definition: pregion_mgr_api.cpp:55
int isOnDifferentCacheLine(void *p1, void *p2)
Determines if the addresses are on different cache lines.
Definition: pregion_mgr_api.cpp:101
uint32_t NVM_FindRegion(const char *name, int flags)
Find the id of a region when it is known to exist already.
Definition: pregion_mgr_api.cpp:29
void * nvm_calloc(size_t nmemb, size_t sz, uint32_t rid)
Calloc style interface for allocation from a persistent region.
Definition: pregion_mgr_api.cpp:68
void * nvm_alloc(size_t sz, uint32_t rid)
Malloc style interface for allocation from a persistent region.
Definition: pregion_mgr_api.cpp:60
void nvm_free(void *ptr)
Deallocation interface for persistent data.
Definition: pregion_mgr_api.cpp:78
void * NVM_GetRegionRoot(uint32_t rid)
Get the root pointer of the persistent region.
Definition: pregion_mgr_api.cpp:50
void * nvm_realloc(void *ptr, size_t sz, uint32_t rid)
Realloc style interface for allocation from a persistent region.
Definition: pregion_mgr_api.cpp:73
void NVM_DeleteRegion(const char *name)
Delete the region with the provided name.
Definition: pregion_mgr_api.cpp:45