X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvserver.h;h=be896e134d0757874e1cc66cfa51ed70c56c569b;hb=717da905058a1305ae9fff13150e16c7a16176e5;hp=bc21f7893519a81160eb4886051a733e7f41c55a;hpb=820076e1d48f75a6cdcb65e2a97a19f42e2c2734;p=util-vserver.git diff --git a/lib/vserver.h b/lib/vserver.h index bc21f78..be896e1 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)) @@ -647,7 +651,7 @@ extern "C" { } mask; } s; #define vna_v4_ip s.ip.v4 -#define vna_v4_ip2 s.ip2.v6 +#define vna_v4_ip2 s.ip2.v4 #define vna_v4_mask s.mask.v4 #define vna_v6_ip s.ip.v6 #define vna_v6_ip2 s.ip2.v6 @@ -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