bproc_numnodes¶
Name¶
bproc_numnodes – Get the count of cluster nodes.
Synopsis¶
#include <sys/bproc.h>
int bproc_numnodes (void );
Description¶
This function returns the number of nodes the cluster is configured to support. Note that this is the potential size of the cluster, not the current number of available nodes or the count of machines assigned node numbers.
Return Value¶
Returns the number of compute nodes the system is configured to support.
If the BProc
system is not loaded, returns 0 and sets errno
to
ENOSYS
.
Returns -1 on error, and sets errno
.
Errors¶
- EIO
The
BProc
system is loaded but not configured or active.- ENOMEM
Insufficient kernel memory was available.