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 struct vcmd_ctx_iattr_v1_x32 {
35 compat_uptr_t name_ptr;
41 #endif /* CONFIG_COMPAT */
43 #include <linux/compiler.h>
45 extern int vc_get_iattr_v0(uint32_t, void __user *);
46 extern int vc_set_iattr_v0(uint32_t, void __user *);
48 extern int vc_get_iattr(uint32_t, void __user *);
49 extern int vc_set_iattr(uint32_t, void __user *);
53 extern int vc_get_iattr_x32(uint32_t, void __user *);
54 extern int vc_set_iattr_x32(uint32_t, void __user *);
56 #endif /* CONFIG_COMPAT */
58 #endif /* __KERNEL__ */
59 #endif /* _VX_INODE_CMD_H */