#include <stdlib.h>
#include <stdint.h>
Go to the source code of this file.
#define NVM_CLFLUSH |
( |
|
p | ) |
nvm_clflush((char*)(void*)(p)) |
Value: full_fence(); \
}
#define NVM_CLFLUSH(p)
Definition: atlas_api.h:103
#define NVM_FLUSH_ACQ |
( |
|
p | ) |
|
Value: }
#define NVM_CLFLUSH(p)
Definition: atlas_api.h:103
#define NVM_FLUSH_ACQ_COND |
( |
|
p | ) |
|
Value: } \
}
#define NVM_CLFLUSH(p)
Definition: atlas_api.h:103
int NVM_IsInOpenPR(void *addr, size_t sz)
Definition: pregion_mgr_api.cpp:90
#define NVM_FLUSH_COND |
( |
|
p | ) |
|
Value: full_fence(); \
} \
}
#define NVM_CLFLUSH(p)
Definition: atlas_api.h:103
int NVM_IsInOpenPR(void *addr, size_t sz)
Definition: pregion_mgr_api.cpp:90
#define NVM_PSYNC_ACQ |
( |
|
p1, |
|
|
|
s |
|
) |
| |
Value: } \
void nvm_psync_acq(void *addr, size_t sz)
Definition: log_mgr_api.cpp:162
#define NVM_PSYNC_ACQ_COND |
( |
|
p1, |
|
|
|
s |
|
) |
| |
Value:{ \
} \
int NVM_IsInOpenPR(void *addr, size_t sz)
Definition: pregion_mgr_api.cpp:90
void nvm_psync_acq(void *addr, size_t sz)
Definition: log_mgr_api.cpp:162
void nvm_begin_durable |
( |
| ) |
|
The following 2 interfaces demarcate a failure-atomic section of code, i.e. code where persistent locations are updated and all-or-nothing behavior of those updates is required. Note that no isolation among threads is provided by these 2 interfaces.
Finalize Atlas internal data structures. This should be called before normal program exit. If not called, the implementation will assume that program exit was abnormal and will require invocation of recovery before restart.
Initialize Atlas internal data structures. This should be called before persistent memory access.
int NVM_IsInOpenPR |
( |
void * |
addr, |
|
|
size_t |
sz |
|
) |
| |
Is the following address with associated size within an open persistent region?
void nvm_psync |
( |
void * |
addr, |
|
|
size_t |
sz |
|
) |
| |
Persistent sync of a range of addresses
void nvm_psync_acq |
( |
void * |
addr, |
|
|
size_t |
sz |
|
) |
| |
Persistent sync of a range of addresses without a trailing barrier