pmemset API version 1.0

The PMDK repository on GitHub is the ultimate source of information on PMDK from release 2.0! For all questions and to submit eventual issues please follow to that repository. The PMDK documentation collected here should be valid up to the 1.13.1 release but is maintained only on a best-effort basis and may not reflect the latest state of the art.

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO

NAME

pmemset_remove_part_map() - removes part mapping from the pmemset

SYNOPSIS

#include <libpmemset.h>

struct pmemset;
struct pmemset_part_map;
int pmemset_remove_part_map(struct pmemset *set,
		struct pmemset_part_map **pmap_ptr);

DESCRIPTION

The pmemset_remove_part_map() function removes provided part mapping from the pmemset. Mapping to be removed can be retrieved using either pmemset_first_part_map(3), pmemset_next_part_map(3) or pmemset_part_map_by_address(3) functions. Provided part mapping can’t be referenced more than once for this function to succeed. Reference to the previously retrieved part mapping can be dropped using pmemset_part_map_drop(3) function.

Note that a retrieved part mapping could be coalesced from multiple parts therefore removing it also removes each part making up this part mapping. For more information see pmemset_set_contiguous_part_coalescing(3) and pmemset_map(3).

When the pmemset_remove_part_map() function succeeds it the part mapping and sets the pointer passed via pmap_ptr variable to NULL.

RETURN VALUE

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

ERRORS

The pmemset_remove_part_map() can fail with the following errors:

  • PMEMSET_E_PART_NOT_FOUND - provided part wasn’t found in the pmemset

SEE ALSO

pmemset_first_part_map(3), pmemset_map(3), pmemset_next_part_map(3), pmemset_part_map_by_address(3), pmemset_part_map_drop(3), pmemset_set_contiguous_part_coalescing(3), libpmemset(7) and http://pmem.io

The contents of this web site and the associated GitHub repositories are BSD-licensed open source.