X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Flimit_cmd.h;h=a994d02ea3f93e38790b42a3749b44b17a922361;hb=2822ba293eb308225c50d346930c47bf98d9927b;hp=f67f7fc15dd4368bd21d4d68e61f8ba1f447d470;hpb=2894fc5a4c8335e4d7221311fed0556f33f8047c;p=util-vserver.git diff --git a/kernel/limit_cmd.h b/kernel/limit_cmd.h index f67f7fc..a994d02 100644 --- a/kernel/limit_cmd.h +++ b/kernel/limit_cmd.h @@ -1,13 +1,11 @@ #ifndef _VX_LIMIT_CMD_H #define _VX_LIMIT_CMD_H - /* rlimit vserver commands */ #define VCMD_get_rlimit VC_CMD(RLIMIT, 1, 0) #define VCMD_set_rlimit VC_CMD(RLIMIT, 2, 0) #define VCMD_get_rlimit_mask VC_CMD(RLIMIT, 3, 0) -#define VCMD_reset_minmax VC_CMD(RLIMIT, 9, 0) struct vcmd_ctx_rlimit_v0 { uint32_t id; @@ -22,18 +20,17 @@ struct vcmd_ctx_rlimit_mask_v0 { uint32_t maximum; }; -#define VCMD_rlimit_stat VC_CMD(VSTAT, 1, 0) - -struct vcmd_rlimit_stat_v0 { - uint32_t id; - uint32_t hits; - uint64_t value; - uint64_t minimum; - uint64_t maximum; -}; - #define CRLIM_UNSET (0ULL) #define CRLIM_INFINITY (~0ULL) #define CRLIM_KEEP (~1ULL) +#ifdef __KERNEL__ + +#include + +extern int vc_get_rlimit(uint32_t, void __user *); +extern int vc_set_rlimit(uint32_t, void __user *); +extern int vc_get_rlimit_mask(uint32_t, void __user *); + +#endif /* __KERNEL__ */ #endif /* _VX_LIMIT_CMD_H */