fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / linux / vserver / dlimit_cmd.h
index b91a946..1aedb36 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _VX_DLIMIT_CMD_H
 #define _VX_DLIMIT_CMD_H
 
+
 /*  dlimit vserver commands */
 
 #define VCMD_add_dlimit                VC_CMD(DLIMIT, 1, 0)
@@ -24,11 +25,16 @@ struct      vcmd_ctx_dlimit_v0 {
        uint32_t flags;
 };
 
+#define CDLIM_UNSET            ((uint32_t)0UL)
+#define CDLIM_INFINITY         ((uint32_t)~0UL)
+#define CDLIM_KEEP             ((uint32_t)~1UL)
 
 #ifdef __KERNEL__
 
 #ifdef CONFIG_COMPAT
 
+#include <asm/compat.h>
+
 struct vcmd_ctx_dlimit_base_v0_x32 {
        compat_uptr_t name_ptr;
        uint32_t flags;