1 #ifndef _VX_LIMIT_CMD_H
2 #define _VX_LIMIT_CMD_H
5 /* rlimit vserver commands */
7 #define VCMD_get_rlimit VC_CMD(RLIMIT, 1, 0)
8 #define VCMD_set_rlimit VC_CMD(RLIMIT, 2, 0)
9 #define VCMD_get_rlimit_mask VC_CMD(RLIMIT, 3, 0)
10 #define VCMD_reset_hits VC_CMD(RLIMIT, 7, 0)
11 #define VCMD_reset_minmax VC_CMD(RLIMIT, 9, 0)
13 struct vcmd_ctx_rlimit_v0 {
20 struct vcmd_ctx_rlimit_mask_v0 {
26 #define VCMD_rlimit_stat VC_CMD(VSTAT, 1, 0)
28 struct vcmd_rlimit_stat_v0 {
36 #define CRLIM_UNSET (0ULL)
37 #define CRLIM_INFINITY (~0ULL)
38 #define CRLIM_KEEP (~1ULL)
40 #endif /* _VX_LIMIT_CMD_H */