execute base.setSuccess() at the end
[util-vserver.git] / util-vserver / kernel / dlimit_cmd.h
index fe6ccc3..b91a946 100644 (file)
@@ -27,13 +27,15 @@ struct      vcmd_ctx_dlimit_v0 {
 
 #ifdef __KERNEL__
 
+#ifdef CONFIG_COMPAT
+
 struct vcmd_ctx_dlimit_base_v0_x32 {
-       uint32_t __user name_ptr;
+       compat_uptr_t name_ptr;
        uint32_t flags;
 };
 
 struct vcmd_ctx_dlimit_v0_x32 {
-       uint32_t __user name_ptr;
+       compat_uptr_t name_ptr;
        uint32_t space_used;                    /* used space in kbytes */
        uint32_t space_total;                   /* maximum space in kbytes */
        uint32_t inodes_used;                   /* used inodes */
@@ -42,6 +44,8 @@ struct        vcmd_ctx_dlimit_v0_x32 {
        uint32_t flags;
 };
 
+#endif /* CONFIG_COMPAT */
+
 #include <linux/compiler.h>
 
 extern int vc_add_dlimit(uint32_t, void __user *);
@@ -50,5 +54,15 @@ extern int vc_rem_dlimit(uint32_t, void __user *);
 extern int vc_set_dlimit(uint32_t, void __user *);
 extern int vc_get_dlimit(uint32_t, void __user *);
 
+#ifdef CONFIG_COMPAT
+
+extern int vc_add_dlimit_x32(uint32_t, void __user *);
+extern int vc_rem_dlimit_x32(uint32_t, void __user *);
+
+extern int vc_set_dlimit_x32(uint32_t, void __user *);
+extern int vc_get_dlimit_x32(uint32_t, void __user *);
+
+#endif /* CONFIG_COMPAT */
+
 #endif /* __KERNEL__ */
 #endif /* _VX_DLIMIT_CMD_H */