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_v3 VC_CMD(SCHED, 1, 3)
9 #define VCMD_set_sched_v4 VC_CMD(SCHED, 1, 4)
11 struct vcmd_set_sched_v2 {
20 struct vcmd_set_sched_v3 {
27 int32_t priority_bias;
30 struct vcmd_set_sched_v4 {
42 #define VCMD_set_sched VC_CMD(SCHED, 1, 5)
43 #define VCMD_get_sched VC_CMD(SCHED, 2, 5)
45 struct vcmd_sched_v5 {
57 #define VXSM_FILL_RATE 0x0001
58 #define VXSM_INTERVAL 0x0002
59 #define VXSM_FILL_RATE2 0x0004
60 #define VXSM_INTERVAL2 0x0008
61 #define VXSM_TOKENS 0x0010
62 #define VXSM_TOKENS_MIN 0x0020
63 #define VXSM_TOKENS_MAX 0x0040
64 #define VXSM_PRIO_BIAS 0x0100
66 #define VXSM_IDLE_TIME 0x0200
67 #define VXSM_FORCE 0x0400
69 #define VXSM_V3_MASK 0x0173
70 #define VXSM_SET_MASK 0x01FF
72 #define VXSM_CPU_ID 0x1000
73 #define VXSM_BUCKET_ID 0x2000
75 #define VXSM_MSEC 0x4000
77 #define SCHED_KEEP (-2) /* only for v2 */
80 #define VCMD_sched_info VC_CMD(SCHED, 3, 0)
82 struct vcmd_sched_info {
92 #endif /* _VX_SCHED_CMD_H */