BACK
Manpage of LIBCLUSTER

LIBCLUSTER

Section: OpenSSI Prog Manual (3ssi)
Updated: 12 December 2003

 

NAME

cluster_getnodebyname - Returns node number given a node name  

SYNOPSIS

#include <sys/cluster.h>

clusternode_t cluster_getnodebyname( const char *nodename )

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

DESCRIPTION

cluster_getnodebyname returns the node number for a given nodename. It searches through /cluster/node<nodenum>/etc/nodename for nodename.

 

RETURN VALUE

Returns 0 on success, and -1 on error (errno is set appropriately).  

ERRORS

ENOMEM
Insufficient memory(Memory allocation failed).
EINVAL
Invalid nodename

 

SEE ALSO

clusternode_num(3ssi)


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