bproc_currnode

Name

bproc_currnode -- return the node the calling process is running on

Synopsis

#include <sys/bproc.h>

int bproc_currnode(void);

Description

bproc_currnode returns the node number that the current process is running on. If the current process is running on the master node, it will return BPROC_NODE_MASTER.

See Also

bproc_numnodes(2)