From 65f792e976c8ee0534e9fa8dca72fa4c20a89a47 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 27 Feb 2004 17:59:07 +0000 Subject: [PATCH] updated scheduler definitions git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1029 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/virtual.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/util-vserver/lib/virtual.h b/util-vserver/lib/virtual.h index 66add48..a8d13fb 100644 --- a/util-vserver/lib/virtual.h +++ b/util-vserver/lib/virtual.h @@ -141,21 +141,22 @@ struct vcmd_ctx_rlimit_mask_v0 { /* scheduler vserver commands */ -#define VCMD_get_sched VC_CMD(SCHED, 1, 1) -#define VCMD_set_sched VC_CMD(SCHED, 2, 1) +#define VCMD_set_sched VC_CMD(SCHED, 1, 1) +/* Options - these ones enable or disable the CTX_SCHED flag */ +#define TBF_SCHED_ENABLE 0x0001 +#define TBF_SCHED_DISABLE 0x0002 /* Structure for context's TBF scheduling priorities */ +struct vcmd_set_sched_v1 { + uint32_t options; -struct vcmd_tbf_sched_v1 { - uint32_t fill_level; - uint32_t fill_rate; - uint32_t period; - uint32_t bucket_size; + int32_t fill_rate; + int32_t period; + int32_t fill_level; + int32_t bucket_size; }; -#define TBFS_PERIOD_AUTO (0ULL) -#define TBFS_KEEP_VALUE (~0ULL) /* inode vserver commands */ -- 1.8.1.5