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

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


cpusetDetachAll(3x)					   cpusetDetachAll(3x)

NAME    [Toc]    [Back]

     cpusetDetachAll - detaches	all threads from a cpuset

SYNOPSIS    [Toc]    [Back]

     #include <cpuset.h>

     int cpusetDetachAll(char *qname);

DESCRIPTION    [Toc]    [Back]

     The cpusetDetachAll function is used to detach all	threads	currently
     attached to the specified cpuset.	Only a process running with root user
     ID	can successfully execute cpusetDetachAll.

     The qname argument	is the name of the cpuset that the operation will be
     performed upon.

EXAMPLES    [Toc]    [Back]

     This example detaches all threads from the	cpuset queue named mpi_set.

	       char *qname = "mpi_set";

	       /* Attach to cpuset, if error - print error & exit */
	       if (!cpusetDetachAll(qname)) {

NOTES    [Toc]    [Back]

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

DIAGNOSTICS    [Toc]    [Back]

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

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
rmtrashcan Tru64 Attaches, detaches, or shows a trashcan directory
shtrashcan Tru64 Attaches, detaches, or shows a trashcan directory
mktrashcan Tru64 Attaches, detaches, or shows a trashcan directory
cpusetCreate IRIX create a cpuset
cpusetDestroy IRIX destroy a cpuset
pthread_nsg_detach Tru64 Detaches a thread from a NUMA Scheduling Group (libpthread library)
cpuset IRIX cpuset configuration files
cpusetGetName IRIX get the name of the cpuset to which a process is attached
cpusetGetProperties IRIX retrieve various properties associated with a cpuset
cpusetGetPIDList IRIX get a list of all PIDs attached to a cpuset
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service