X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvserver.h;h=38e4c5a7c7aff20a09451c3afb6a668d1febfd02;hb=0687b4f77b732aaf647d4ce60300d3c9774165d2;hp=8c67e777dc1e0b60c74b2d0187e3c4461875e28c;hpb=9335a7d10bff8d782cda505f67ac8e3ab0151850;p=util-vserver.git diff --git a/lib/vserver.h b/lib/vserver.h index 8c67e77..38e4c5a 100644 --- a/lib/vserver.h +++ b/lib/vserver.h @@ -268,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 @@ -393,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 {