*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> cpusetGetCPUCount (3x)              
Title
Content
Arch
Section
 

Contents


cpusetGetCPUCount(3x)					 cpusetGetCPUCount(3x)


NAME    [Toc]    [Back]

     cpusetGetCPUCount - obtain	the number of CPUs configured on the system

SYNOPSIS    [Toc]    [Back]

     #include <cpuset.h>

     int cpusetGetCPUCount(void);

DESCRIPTION    [Toc]    [Back]

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

EXAMPLES    [Toc]    [Back]

     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 systems is configured for %d	CPUs\n",
		       ncpus);

NOTES    [Toc]    [Back]

     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    [Toc]    [Back]

      
      
     cpuset(1),	cpuset(5).

DIAGNOSTICS    [Toc]    [Back]

     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    [Toc]    [Back]
	  Number of CPUs configured on the system is not a value greater than
	  or equal to 1.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
clu_is_member Tru64 Determine whether the local system is currently a cluster member or has been configured to be a clus...
clu_is_ready Tru64 Determine whether the local system is currently a cluster member or has been configured to be a clus...
factor IRIX obtain the prime factors of a number
SSL_pending NetBSD obtain number of readable bytes buffered in an SSL object
SSL_pending Tru64 Obtain number of readable bytes buffered in an SSL object
SSL_pending OpenBSD obtain number of readable bytes buffered in an SSL object
cpuset IRIX define and manage a set of CPUs
cpusetGetCPUList IRIX get the list of all CPUs assigned to a cpuset
onlinediag IRIX run diagnostic tests on cpus to test floating point units.
iptunnel Tru64 Creates, deletes, and displays configured tunnels
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service