#define VC_VXSM_IDLE_TIME 0x0200
#define VC_VXSM_FORCE 0x0400
+#define VC_VXSM_MSEC 0x4000
#define VC_VXSM_V3_MASK 0x0173
#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
/** \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 {