cpusetGetNodeCount(3x)

cpusetGetNodeCount - obtain the number of nodes configured on the system

Showing IRIX 6.5.30 (default release). Added in IRIX 6.5.22.

NAME
     cpusetGetNodeCount - obtain the number of nodes configured on the system

SYNOPSIS
     #include <cpuset.h>

     int cpusetGetNodeCount(void);

DESCRIPTION
     The cpusetGetNodeCount function returns the number of nodes that are
     configured on the system.

EXAMPLES
     This example obtains the number of nodes configured on the system and
     then prints out the result.

               int nnodes;

               if ( !(nnodes = cpusetGetNodeCount()) ) {
                   perror("cpusetGetNodeCount");
                   exit(1);
               }
               printf("The system is configured for %d nodes\n",
                       nnodes);


NOTES
     cpusetGetNodeCount is found in the library "libcpuset.so", and will be
     loaded if the option -lcpuset is used with cc(1) or ld(1).

SEE ALSO
     cpuset(1), cpuset(5).

DIAGNOSTICS
     If successful, cpusetGetNodeCount returns a value greater than or equal
     to 1.  If cpusetAttach fails, it returns the value 0 and errno is set to
     indicate the error.  The values for errno include those values as set by
     sysmp(2) and the following:

     ERANGE
          Number of nodes configured on the system is not a value greater than
          or equal to 1.