pthread_nsg_detach(3) — Subroutines
NAME
pthread_nsg_detach − Detaches a thread from a NUMA Scheduling Group (libpthread library)
SYNOPSIS
#include <numa.h>
int pthread_nsg_detach(
pthread_t thread );
PARAMETERS
thread
Identifies the thread to detach from a NUMA Scheduling Group (NSG).
DESCRIPTION
The pthread_nsg_detach() function detaches the thread specified by the thread argument from the NSG to which it is attached. The function does not reassign the thread to a new NSG.
RETURN VALUES
0Success.
Integer value
Failure. In this case, the integer value indicates the type of error. Possible errors include the following:
[EACCES]
Based on the NSG’s permissions, the caller does not have execute permission, which is required to detach a thread.
[EBUSY]
The specified thread is hard attached (RAD_INSIST) to a RAD or has memory wired (locked) on its current RAD such that it cannot be migrated to a common RAD selected for the NSG.
[EINVAL]
The value of the flags argument is invalid.
[ENOMEM]
NSG_INSIST and NSG_MIGRATE were specified and no RAD can be found with sufficient memory to accommodate the resulting NSG.
[ESRCH]
The thread argument specifies a thread that does not exist.
ERRORS
None.
SEE ALSO
Functions: nsg_attach_pid(3), nsg_get(3), numa_intro(3)
Files: numa_types(4)