cpusetGetCPUCount man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



cpusetGetCPUCount(3x)					 cpusetGetCPUCount(3x)

NAME
     cpusetGetCPUCount - obtain the number of CPUs configured on the system

SYNOPSIS
     #include <cpuset.h>

     int cpusetGetCPUCount(void);

DESCRIPTION
     The cpusetGetCPUCount function returns the number of CPUs that are
     configured on the system.

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

	       int ncpus;

	       if ( !(ncpus = cpusetGetCPUCount()) ) {
		   perror("cpusetGetCPUCount");
		   exit(1);
	       }
	       printf("The system is configured for %d CPUs\n",
		       ncpus);

NOTES
     cpusetGetCPUCount 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, cpusetGetCPUCount 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 CPUs configured on the system is not a value greater than
	  or equal to 1.

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net