]> git.proxmox.com Git - ceph.git/blob - ceph/src/pmdk/src/libpmem2/persist.h
import ceph 16.2.7
[ceph.git] / ceph / src / pmdk / src / libpmem2 / persist.h
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright 2019-2020, Intel Corporation */
3
4 /*
5 * persist.h -- internal definitions for libpmem2 persist module
6 */
7 #ifndef PMEM2_PERSIST_H
8 #define PMEM2_PERSIST_H
9
10 #include <stddef.h>
11
12 #include "map.h"
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 void pmem2_persist_init(void);
19
20 int pmem2_flush_file_buffers_os(struct pmem2_map *map, const void *addr,
21 size_t len, int autorestart);
22 void pmem2_set_flush_fns(struct pmem2_map *map);
23 void pmem2_set_mem_fns(struct pmem2_map *map);
24
25 #ifdef __cplusplus
26 }
27 #endif
28
29 #endif