* vc_create_context(), vc_migrate_context(), vc_[sg]et_flags(): added
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 26 Feb 2004 13:02:35 +0000 (13:02 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 26 Feb 2004 13:02:35 +0000 (13:02 +0000)
  prototypes plus structures
* use VC_DYNAMIC_XID instead of VC_RANDCTX

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1003 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/vserver.h

index 1056494..089d6b0 100644 (file)
@@ -28,7 +28,7 @@
 /** the value which is returned in error-case (no ctx found) */
 #define VC_NOCTX               ((xid_t)(-1))
 /** the value which means a random (the next free) ctx */
-#define VC_RANDCTX             ((xid_t)(-1))
+#define VC_DYNAMIC_XID         ((xid_t)(-1))
 /** the value which means the current ctx */
 #define VC_SAMECTX             ((xid_t)(-2))
 
@@ -140,7 +140,9 @@ extern "C" {
   
   /* rlimit related functions */
   typedef uint64_t     vc_limit_t;
-  
+
+  xid_t        vc_create_context(xid_t xid);
+  int  vc_migrate_context(xid_t xid);
   
   struct vc_rlimit {
       vc_limit_t min;
@@ -190,7 +192,15 @@ extern "C" {
 
 
   int          vc_enter_namespace(xid_t xid);
-  
+
+
+  struct  vc_ctx_flags {
+      uint64_t flagword;
+      uint64_t mask;
+  };
+
+  int          vc_get_flags(xid_t xid, struct vc_ctx_flags *);
+  int          vc_set_flags(xid_t xid, struct vc_ctx_flags const *);
 
   uint32_t     vc_textlist2flag(char const *, size_t len,
                                 char const **err_ptr, size_t *err_len);