From: Enrico Scholz Date: Wed, 22 Sep 2004 20:51:34 +0000 (+0000) Subject: struct vc_set_sched: updated + added some flags X-Git-Tag: IPSENTINEL_VERSION_0_12~295 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=718abd712a36c609de809ce39b979bc9b8aca196;p=util-vserver.git struct vc_set_sched: updated + added some flags vc_get_insecureflags(): removed again; it is now handled by the utilities git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1697 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index 2c13e70..9204a64 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -185,6 +185,15 @@ #define VC_VXC_SECURE_MOUNT 0x00010000ull +#define VC_VXSM_FILL_RATE 0x0001 +#define VC_VXSM_INTERVAL 0x0002 +#define VC_VXSM_TOKENS 0x0010 +#define VC_VXSM_TOKENS_MIN 0x0020 +#define VC_VXSM_TOKENS_MAX 0x0040 +#define VC_VXSM_PRIO_BIAS 0x0100 + + + /** \defgroup syscalls Syscall wrappers * Functions which are calling the vserver syscall directly. */ @@ -580,9 +589,6 @@ extern "C" { inline static uint_least64_t vc_get_insecureccaps() { return ~(VC_VXC_SET_UTSNAME|VC_VXC_ICMP_PING); } - inline static uint_least64_t vc_get_insecureflags() { - return VC_VXF_HIDE_NETIF; - } inline static int vc_setfilecontext(char const *filename, xid_t xid) { return vc_set_iattr(filename, xid, 0, VC_IATTR_XID); @@ -596,12 +602,13 @@ extern "C" { struct vc_set_sched { - int32_t fill_rate; - int32_t interval; - int32_t tokens; - int32_t tokens_min; - int32_t tokens_max; - uint64_t cpu_mask; + uint_least32_t set_mask; + int_least32_t fill_rate; + int_least32_t interval; + int_least32_t tokens; + int_least32_t tokens_min; + int_least32_t tokens_max; + int_least32_t priority_bias; }; int vc_set_sched(xid_t xid, struct vc_set_sched const *);