/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* bos720 src/bos/kernel/sys/mobility.h 1.1                               */
/*                                                                        */
/* Licensed Materials - Property of IBM                                   */
/*                                                                        */
/* Restricted Materials of IBM                                            */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 2014                   */
/* All Rights Reserved                                                    */
/*                                                                        */
/* US Government Users Restricted Rights - Use, duplication or            */
/* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.      */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
/* @(#)10       1.1  src/bos/kernel/sys/mobility.h, liveupdate, bos720 3/21/14 05:17:21 */

#ifndef _MOBILITY_H
#define _MOBILITY_H

/* MOBILITY_RESTART_EXIT signifies that a process is to exit immediately on restart.
 * Its complete process state is not saved during checkpoint and a recreation
 * of itself on restart immediately exits with code 0.
 */
#define MOBILITY_RESTART_EXIT  1

/* MOBILITY_BASE_PROCESS is used during Live Update Operation only.
 * The process will not be checkpointed. An application can choose to be 
 * classified as base processes.
 */
#define MOBILITY_BASE_PROCESS  1

/* flags onlys used for proc_mobility_restartexit_set.
 * Specify the environment to set the process atrribut 
 */
#define PROC_MOBILITY_GLOBAL 0x1
#define PROC_MOBILITY_WPAR   0x2

int proc_mobility_restartexit_get(pid_t, int*);
int proc_mobility_restartexit_set(pid_t, int, int);

int proc_mobility_base_get(pid_t, int*);
int proc_mobility_base_set(pid_t, int);

#endif /* _MOBILITY_H */
