The cmm_member_getall() function fills member_table with information about all nodes in the cluster.
There is a table entry for each node. The information in this table is of
the same type and meaning as that returned by cmm_member_getinfo(). If member_table is a null pointer, cmm_member_getall() behaves like the cmm_member_getcount()function.
The cmm_member_getcount() function returns the number
of nodes in the cluster, including the node from which the function is called.
The value is stored in the area pointed to by member_count.
See the Netra High Availability Suite Foundation Services 2.1 6/03 CMM Programming Guide
for further information on the state of the node.
The process calling the cmm_member_getall() and cmm_member_getcount() functions allocates and frees all data structures
used to return membership information, including the appropriate number of
entries in the cluster node table.
If there are more peer nodes than entries in member table, the table is not modified, member_count
is updated, and a CMM_ERANGE error is returned. If there
are more member entries than peer nodes, the excess member entries are zeroed
out.
If requested membership information is temporarily unavailable, as when
a switchover is taking place, a CMM_ENOCLUSTER error is
returned.
The calling process is in charge of allocating the memory and indicating
the number of entries by table_size.
See the Netra High Availability Suite Foundation Services 2.1 6/03 CMM Programming Guide for information on the cmm_member_t
structure.