bproc_move

Name

bproc_move -- move the calling process to another node

Synopsis

#include <sys/bproc.h>

int bproc_move(int node);

Description

bproc_move will move the current process to the remote node given by node.

Process migration in BProc is not transparent. Migration is accomplished by making a copy of all the program's memory regions and recreating the memory space on the remote node. All open files are closed during migration.

Return value

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

Errors

EPERM

The process does not have permission to move to node.

ELOOP

The process is already running on node.

EINVAL

node is an invalid node number or node is down.

EBUSY

The BProc system is not running.

See Also

bproc_rfork(2), bproc_execmove(2)