bproc_nodepwroff

Name

bproc_nodepwroff -- ask a slave daemon to power off the machine

Synopsis

#include <sys/bproc.h>

int bproc_nodepwroff( int node );

Description

bproc_nodepwroff asks a slave daemon to power off itself.

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_nodepwroff.

EINVAL

node is an invalid node number or node is down.

EBUSY

The BProc system is not running.

See Also

bproc_nodereboot(2), bproc_nodehalt(2)