1 #ifndef _VX_INODE_CMD_H
2 #define _VX_INODE_CMD_H
5 /* inode vserver commands */
7 #define VCMD_get_iattr_v0 VC_CMD(INODE, 1, 0)
8 #define VCMD_set_iattr_v0 VC_CMD(INODE, 2, 0)
10 #define VCMD_get_iattr VC_CMD(INODE, 1, 1)
11 #define VCMD_set_iattr VC_CMD(INODE, 2, 1)
13 struct vcmd_ctx_iattr_v0 {
14 /* device handle in id */
21 struct vcmd_ctx_iattr_v1 {
22 const char __user *name;
34 #include <asm/compat.h>
36 struct vcmd_ctx_iattr_v1_x32 {
37 compat_uptr_t name_ptr;
43 #endif /* CONFIG_COMPAT */
45 #include <linux/compiler.h>
47 extern int vc_get_iattr_v0(uint32_t, void __user *);
48 extern int vc_set_iattr_v0(uint32_t, void __user *);
50 extern int vc_get_iattr(uint32_t, void __user *);
51 extern int vc_set_iattr(uint32_t, void __user *);
55 extern int vc_get_iattr_x32(uint32_t, void __user *);
56 extern int vc_set_iattr_x32(uint32_t, void __user *);
58 #endif /* CONFIG_COMPAT */
60 #endif /* __KERNEL__ */
61 #endif /* _VX_INODE_CMD_H */