PMEMSET_FIRST_PART_MAP(3)

NAME

pmemset_first_part_map() - reads first mapping from a set pmemset_next_part_map() - reads next mapping from a set

SYNOPSIS

    #include <libpmemset.h>
    struct pmemset;
    struct pmemset_part_map;
    void pmemset_first_part_map(struct pmemset *set, struct pmemset_part_map **pmap);
    void pmemset_next_part_map(struct pmemset *set, struct pmemset_part_map *cur,
            struct pmemset_part_map **next)

DESCRIPTION

The pmemset_first_part_map() function reads first mapping from the set. The pmemset_next_part_map() function reads from the set a mapping that succeeds the mapping provided in the cur variable. The set parameter points to the structure describing a set created with pmemset_new(3) function. Pointer to the retrieved mapping object in the set is stored in the user-provided variable via the pmap or next pointer depending on the used function.

RETURN VALUE

The pmemset_first_part_map() does not return any value. *pmap is set to NULL on failure.

The pmemset_next_part_map() does not return any value. *next is set to NULL on failure.

SEE ALSO

pmemset_new(3), libpmemset(7) and <http://pmem.io>