migrate

Langue: en

Version: 08/23/2007 (mandriva - 22/10/07)

Autres sections - même nom

Section: 2 (Appels système)

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.

FILES

/etc/kerrighed_nodes

This file contains the list of nodes used in the Kerrighed cluster. See kerrighed_nodes(5) for further details.

AUTHOR

Renaud Lottiaux <renaud.lottiaux@kerlabs.com>

SEE ALSO

migrate_self(2), krg_capability(7)