Name

migrate — Migrate a process to a given node.

Synopsis

#include <libkerrighed.h>
int migrate(pid_t  pid,
 int  node_id);

Description

migrate migrates the process given by pid to the cluster node nodeid.

Return Value

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

Errors

ESRCH

The pid or process group does not exist.

EPERM

The process does not have permission to migrate the given process. This can occurs if the process does not have the right capabilities (see krg_capability(7) for further details) or if it has local streams opened.

Author

Renaud Lottiaux