bproc_nodereboot

Name

bproc_nodereboot -- ask a slave daemon to reboot the machine

Synopsis

#include <sys/bproc.h>

int bproc_nodereboot( int node );

Description

bproc_nodereboot asks a slave daemon to reboot 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_nodereboot.

EINVAL

node is an invalid node number or node is down.

EBUSY

The BProc system is not running.

See Also

bproc_nodehalt(2), bproc_nodepwroff(2)