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

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

Contents


cpusetDetachPID(3x)					   cpusetDetachPID(3x)


NAME    [Toc]    [Back]

     cpusetDetachPID - detach a	specific process from a	cpuset

SYNOPSIS    [Toc]    [Back]

     #include <cpuset.h>

     int cpusetDetachPID(qname,	pid);

     char *qname;

     pid_t pid;

DESCRIPTION    [Toc]    [Back]

     The cpusetDetachPID function is used to detach a specific process
     identified	by its PID from	the cpuset identified by qname.	 Every cpuset
     queue has a file that defines access permissions to the queue.  The
     execute permissions for that file will determine if a process owned by a
     specific user can detach a	process	from the cpuset	queue.

     The qname argument	is the name of the cpuset to which the specified
     process should be detached.

EXAMPLES    [Toc]    [Back]

     This example detaches the current process from a cpuset queue named
     mpi_set.

	       char *qname = "mpi_set";

	       /* Detach from cpuset, if error - print error & exit */
	       if (!cpusetDetachPID(qname, pid)) {
		   perror("cpuseDetachPID");
		   exit(1);
	       }

NOTES    [Toc]    [Back]

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

DIAGNOSTICS    [Toc]    [Back]

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


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
cpusetAttachPID IRIX attach a specific process to a cpuset
cpusetGetName IRIX get the name of the cpuset to which a process is attached
cpusetAttach IRIX attach the current process to a cpuset
rad_detach_pid Tru64 Detach a process from a Resource Affinity Domain by pid (libnuma library)
noderun IRIX Run process on specific node (advisory specification)
uswitch Tru64 Get or set compatibility environment specific behavior for a calling process through the uswitch val...
mpsched HP-UX control the processor or locality domain on which a specific process executes
runon Tru64 Runs a command or process on a specific CPU, a processor set (pset), or a Resource Affinity Domain (...
cpusetCreate IRIX create a cpuset
cpusetDestroy IRIX destroy a cpuset
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service