X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvserver.h;h=38e4c5a7c7aff20a09451c3afb6a668d1febfd02;hb=09a42df0beae0ee63acae7dd71b463ef75cb872d;hp=20122c570265235ee38de5f8a703cbb550831b10;hpb=fc84d2d3d5179f3bbbcee0f7e8d8cb155239edfd;p=util-vserver.git diff --git a/lib/vserver.h b/lib/vserver.h index 20122c5..38e4c5a 100644 --- a/lib/vserver.h +++ b/lib/vserver.h @@ -225,6 +225,7 @@ #define VC_VXSM_IDLE_TIME 0x0200 #define VC_VXSM_FORCE 0x0400 +#define VC_VXSM_MSEC 0x4000 #define VC_VXSM_V3_MASK 0x0173 @@ -267,6 +268,11 @@ #define VC_DATTR_REMAP 0x00000010 +// the process context migration flags +#define VC_VXM_SET_INIT 0x00000001 +#define VC_VXM_SET_REAPER 0x00000002 + + #ifndef CLONE_NEWNS # define CLONE_NEWNS 0x00020000 #endif @@ -392,9 +398,10 @@ extern "C" { /** \brief Moves the current process into the specified context. * \ingroup syscalls * - * \param xid The new context + * \param xid The new context + * \param flags The flags, see VC_VXM_* * \returns 0 on success, -1 on errors */ - int vc_ctx_migrate(xid_t xid); + int vc_ctx_migrate(xid_t xid, uint_least64_t flags); /** \brief Statistics about a context */ struct vc_ctx_stat {