PMEMSET_PART_MAP_BY_ADDRESS(3)

NAME

pmemset_part_map_by_address() - returns part map object

SYNOPSIS

    #include <libpmemset.h>
    struct pmemset;
    struct pmemset_part_map;
    int pmemset_part_map_by_address(struct pmemset *set, struct pmemset_part_map **pmap,
            void *addr);

DESCRIPTION

The pmemset_part_map_by_address() - returns part_map object from the set. The part_map has to contain address addr.

RETURN VALUE

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

ERRORS

The pmemset_part_map_by_address() can fail with the following errors:

•   PMEMSET_E_CANNOT_FIND_PART_MAP - set does not contain part map at address addr.

SEE ALSO

libpmemset(7) and <https://pmem.io>