cpg_iteration_next(3)

cpg_iteration_next3

Return next item in iteration of cpg

Usage

#include <corosync/cpg.h>

cs_error_t cpg_iteration_next (cpg_iteration_handle_t handle, struct cpg_iteration_description_t *description);

Overview

The cpg_iter_next function is used to get next value in iteration. The handle argument is iterator handle obtained by cpg_iteration_initalize(3) function. description is pointer to structure with following definition:


    

    
        

struct cpg_iteration_description_t {
struct cpg_name group;
uint32_t nodeid;
uint32_t pid; };

where group is name of group, nodeid is ID of connected node and pid is pid of connected process. If iteration was initialized with CPG_ITERATION_NAME_ONLY iteration type, both nodeid and pid are 0.

Return value

This call returns the CS_OK value if successful. If there are no more items to iterate, CS_NO_SECTION error code is returned.

Releases

5 releases since Debian 9 (Stretch); the text changed 1 time.

  1. 9
  2. 10–13

From libcpg-dev 3.1.9-2+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.