代码拉取完成,页面将自动刷新
#ifndef PM_H
#define PM_H
#include "util/common.h"
union pmem_transaction_t;
struct pmem_t;
extern struct pmem_t *pmem_open(const char *path, uint64_t cpu, uint64_t *mem_size);
extern void pmem_read(struct pmem_t *pmem, void *dest, uint64_t offset , size_t length);
extern void pmem_write(struct pmem_t *pmem, int sync, const void* src, uint64_t offset, size_t length);
extern void pmem_recovery(struct pmem_t *pmem);
extern union pmem_transaction_t* pmem_transaction_alloc(struct pmem_t *pmem);
//pmem_addr % 1 == 0
//len % 1 == 0
extern bool pmem_transaction_add(struct pmem_t *pmem, union pmem_transaction_t *tx,
const uint64_t pm_ofst, void *paddr,
size_t len, void *new_value);
extern bool pmem_transaction_apply(struct pmem_t *pmem, union pmem_transaction_t *tx);
extern void pmem_transaction_free(struct pmem_t *pmem, union pmem_transaction_t *tx);
extern void pmem_close(struct pmem_t *pmem);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。