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

  man pages->IRIX man pages -> cpusetDestroy (3x)              


cpusetDestroy(3x)					     cpusetDestroy(3x)

NAME    [Toc]    [Back]

     cpusetDestroy - destroy a cpuset

SYNOPSIS    [Toc]    [Back]

     #include <cpuset.h>

     int cpusetDestroy(char *qname);

DESCRIPTION    [Toc]    [Back]

     The cpusetDestroy function	is used	to destroy the specified cpuset	The
     qname argument is the name	of the cpuset that will	be destroyed. Only
     processes running with root user ID are allowed to	destroy	cpuset queues.
     A cpuset can only be destroyed if there are no threads currently attached
     to	it.

EXAMPLES    [Toc]    [Back]

     This example Destroys the cpuset queue named mpi_set.

	       char *qname = "mpi_set";

	       /* Destroy, if error - print error & exit */
	       if (!cpusetDestroy(qname)) {

NOTES    [Toc]    [Back]

     cpusetDestroy 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),	cpusetCreate(3x), cpuset(5).

DIAGNOSTICS    [Toc]    [Back]

     If	successful, cpusetDestroy returns a 1.	If cpusetDestroy fails,	it
     returns the value 0 and errno is set to indicate the error.  The values
     for errno are the same as those returned by sysmp(2).

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
cpusetCreate IRIX create a cpuset
cpusetGetProperties IRIX retrieve various properties associated with a cpuset
cpuset IRIX cpuset configuration files
cpusetGetName IRIX get the name of the cpuset to which a process is attached
cpusetDetachAll IRIX detaches all threads from a cpuset
boot_cpuset IRIX boot cpuset configuration tool
cpusetAttach IRIX attach the current process to a cpuset
cpusetAttachPID IRIX attach a specific process to a cpuset
cpusetDetachPID IRIX detach a specific process from a cpuset
cpusetGetCPUList IRIX get the list of all CPUs assigned to a cpuset
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service