From b86380c60cfccd5211e113ed1a27a1d949b5f0cb Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 13 Jan 2004 14:57:17 +0000 Subject: [PATCH] updated (added scheduler stuff) git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@572 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/virtual.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/util-vserver/lib/virtual.h b/util-vserver/lib/virtual.h index 73538fe..a89388f 100644 --- a/util-vserver/lib/virtual.h +++ b/util-vserver/lib/virtual.h @@ -120,4 +120,26 @@ struct vcmd_ctx_rlimit_mask_v0 { #define CRLIM_KEEP (~1ULL) + +#define VC_CAT_SCHED 14 + +/* scheduler vserver commands */ + +#define VCMD_get_sched VC_CMD(SCHED, 1, 1) +#define VCMD_set_sched VC_CMD(SCHED, 2, 1) + + +/* Structure for context's TBF scheduling priorities */ + +struct vcmd_tbf_sched_v1 { + uint32_t fill_level; + uint32_t fill_rate; + uint32_t period; + uint32_t bucket_size; +}; + +#define TBFS_PERIOD_AUTO (0ULL) +#define TBFS_KEEP_VALUE (~0ULL) + + #endif /* _LINUX_VIRTUAL_H */ -- 1.8.1.5