Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rad_detach_pid(3) — Tru64 UNIX 5.1b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rad_attach_pid(3)

rad_bind_pid(3)

rad_detach_pid(3)  —  Subroutines

NAME

rad_detach_pid − Detach a process from a Resource Affinity Domain by pid (libnuma library)

SYNOPSIS

#include <numa.h>
int rad_detach_pid(
        pid_t pid );

PARAMETERS

pidSpecifies a process identifier (pid) to detach from a RAD set. 

DESCRIPTION

The rad_detach_pid() function frees a process that has been bound or attached to a RAD through the functions rad_bind_pid() or rad_attach_pid(), respectively.  If the pid argument is NULL, the call is self-directed. That is, the function behaves as if the calling process’s pid were specified. Calling rad_detach_pid() for a process that is not attached or bound is not considered to be an error. 

RETURN VALUES

0Success. In this case, rad_detach_pid() detaches the pid specified by pid from the RAD set. 

−1Failure. In this case, errno is set to indicate the error. 

ERRORS

If the rad_detach_pid() function fails, errno is set to one of the following values for the reasons specified. 

[ESRCH]
The process specified in pid does not exist. 

[EPERM]
The real or effective user ID of the caller does not match the real or effective user ID of the process pid, or the caller does not have appropriate privileges to free processes from RADs.

SEE ALSO

Functions: rad_attach_pid(3), rad_bind_pid(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026