pmem2_config_set_sharing - Man Page

set sharing in the pmem2_config structure

Synopsis

#include <libpmem2.h>

struct pmem2_config;
enum pmem2_sharing_type {
    PMEM2_SHARED,
    PMEM2_PRIVATE,
};
int pmem2_config_set_sharing(struct pmem2_config *config, enum pmem2_sharing_type sharing);

Description

The pmem2_config_set_sharing() function configures the behavior and visibility of writes to the mapping’s pages. The possible values are listed below:

Return Value

The pmem2_config_set_sharing() function returns 0 on success or a negative error code on failure.

Errorrs

The pmem2_config_set_sharing() can fail with the following errors:

See Also

libpmem2(7), pmem2_config_new(3), pmem2_map_new(3), sysconf(3) and https://pmem.io\c

Referenced By

libpmem2(7).

2024-07-18 PMDK - PMDK Programmer's Manual