bproc_pidnode – Get the node a PID is running on.
#include <sys/bproc.h> int bproc_pidnode (int pid);
The process id
Retrieves the node number associated with the given Process ID from the
BProc process space. Note that only user processes ghosted on the
master are available in this way. Node kernel and internal
PIDs are not accessible.
Return the node number that the PID is running on.
BPROC_NODE_NONE if the PID is running on the master node or
isn’t a valid PID.
This functions returns
BPROC_NODE_NONE if there was an error
BProc status file, or if
pid was not found in the
status file. There is currently no way to tell if
resulted from an error or from
pid not being masqueraded by
The program does not have access to read the
BProcstatus file does not exist.
Insufficient kernel memory.
The limit of files that can be opened by the process has been reached.
The limit of files that can be opened by the system has been reached.
BProcstatus file has been locked.