X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvserver.h;h=886e6a5d90cf526b23b52e946665d5f015cc6905;hb=316195e065e61b6cbf36774056d26ade9df7d74e;hp=bc21f7893519a81160eb4886051a733e7f41c55a;hpb=820076e1d48f75a6cdcb65e2a97a19f42e2c2734;p=util-vserver.git diff --git a/lib/vserver.h b/lib/vserver.h index bc21f78..886e6a5 100644 --- a/lib/vserver.h +++ b/lib/vserver.h @@ -211,6 +211,8 @@ #define VC_VXC_ADMIN_MAPPER 0x00200000ull #define VC_VXC_ADMIN_CLOOP 0x00400000ull +#define VC_VXC_KTHREAD 0x01000000ull + // the scheduler flags #define VC_VXSM_FILL_RATE 0x0001 @@ -306,7 +308,9 @@ #ifndef CLONE_NEWIPC # define CLONE_NEWIPC 0x08000000 #endif - +#ifndef CLONE_NEWUSER +# define CLONE_NEWUSER 0x10000000 +#endif #define VC_BAD_PERSONALITY ((uint_least32_t)(-1)) @@ -821,6 +825,9 @@ extern "C" { int vc_set_mapping(xid_t xid, const char *device, const char *target, uint32_t flags); int vc_unset_mapping(xid_t xid, const char *device, const char *target, uint32_t flags); + int vc_get_badness(xid_t xid, int64_t *badness); + int vc_set_badness(xid_t xid, int64_t badness); + /** \brief Information about parsing errors * \ingroup helper