BACK
Manpage of LIBCLUSTER

LIBCLUSTER

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

 

NAME

clusternode_avail - determines if node is up  

SYNOPSIS

#include <sys/cluster.h>

int clusternode_avail(clusternode_t nodenum);

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

DESCRIPTION

clusternode_avail() determines if the node specified by nodenum is up and returns an appropriate value to the caller to indicate that. This determination is made based on the node state CLUSTERNODE_UP. For details about node states, see cluster(8ssi).

The details of the argument to clusternode_avail are:

nodenum
The number of the node for which information is returned. Values must be between 1 and the maximum number of nodes allowed by the cluster configuration. This number is the value returned by cluster_maxnodes().
 

RETURN VALUE

clusternode_avail() returns a value of 1 if the node is in CLUSTERNODE_UP state.

A value of 0 is returned by clusternode_avail() if the node is not in CLUSTERNODE_UP state.

If nodenum is invalid, or, if clusternode_avail() encounters an error, while processing the request it returns -1 and sets errno to indicate the cause of the error.  

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