bproc_nodesetstatus

Name

bproc_nodesetstatus -- set status of a node

Synopsis

#include <sys/bproc.h>

int bproc_nodesetstatus( int node, int status );

Description

bproc_nodesetstatus sets the status of node to status. A node's status can only be changed if the node is connected to the master daemon - that is, if it is not down. Setting a node's status to down force an immediate disconnect of the node. You must be the superuser to change node status.

Return value

On success, zero is returned. On error, -1 is returned and errno is set appropriately.

Errors

EPERM

The calling process does not have permission to move to node. You must be the superuser to use bproc_nodesetstatus.

EINVAL

node is an invalid node number or node is down.

EBUSY

The BProc system is not running.

See Also

bproc_nodeinfo(2)