BACK
Manpage of LIBCLUSTER

LIBCLUSTER

Section: OpenSSI Prog Manual (3ssi)
Updated: 30 October 2003

 

NAME

cluster_maxnodes - returns the maximum number of nodes allowed in the cluster  

SYNOPSIS

#include <sys/cluster.h>

int cluster_maxnodes(void)

cc [flag ...] file -lcluster [library ...]
 

DESCRIPTION

cluster_maxnodes() returns the maximum number of cluster nodes that the current system configuration can support. The value returned by cluster_maxnodes can be used to dynamically allocate arrays for cluster_membership(3ssi) and other similar functions. For example, in the cluster_membership function, allocate membershiparray dynamically, based on the value returned by cluster_maxnodes. In this way, you can avoid recompiling the code as cluster sizes increase.  

RETURN VALUE

cluster_maxnodes() returns the maximum nodes that the current system configuration can support, or -1 if an error occured.  

SEE ALSO

cluster(8ssi), cluster_detailed_transition(3ssi), cluster_maxnodes(3ssi), cluster_membership(3ssi), cluster_name(3ssi), cluster_ssiconfig(3ssi), cluster_transition(3ssi), clusternode_info(3ssi), clusternode_num(3ssi), clusternode_setinfo(3ssi)


This document was created by man2html, using the manual pages.
Time: 21:59:39 GMT, May 19, 2004