1 #ifndef _VX_SCHED_CMD_H
2 #define _VX_SCHED_CMD_H
5 /* sched vserver commands */
7 #define VCMD_set_sched_v2 VC_CMD(SCHED, 1, 2)
8 #define VCMD_set_sched VC_CMD(SCHED, 1, 3)
10 struct vcmd_set_sched_v2 {
19 struct vcmd_set_sched_v3 {
26 int32_t priority_bias;
30 #define VXSM_FILL_RATE 0x0001
31 #define VXSM_INTERVAL 0x0002
32 #define VXSM_TOKENS 0x0010
33 #define VXSM_TOKENS_MIN 0x0020
34 #define VXSM_TOKENS_MAX 0x0040
35 #define VXSM_PRIO_BIAS 0x0100
37 #define SCHED_KEEP (-2)
41 #include <linux/compiler.h>
43 extern int vc_set_sched_v1(uint32_t, void __user *);
44 extern int vc_set_sched_v2(uint32_t, void __user *);
45 extern int vc_set_sched(uint32_t, void __user *);
47 #endif /* __KERNEL__ */
48 #endif /* _VX_SCHED_CMD_H */