1 #ifndef _VX_INODE_CMD_H
2 #define _VX_INODE_CMD_H
4 /* inode vserver commands */
6 #define VCMD_get_iattr_v0 VC_CMD(INODE, 1, 0)
7 #define VCMD_set_iattr_v0 VC_CMD(INODE, 2, 0)
9 #define VCMD_get_iattr VC_CMD(INODE, 1, 1)
10 #define VCMD_set_iattr VC_CMD(INODE, 2, 1)
12 struct vcmd_ctx_iattr_v0 {
13 /* device handle in id */
20 struct vcmd_ctx_iattr_v1 {
21 const char __user *name;
32 struct vcmd_ctx_iattr_v1_x32 {
33 compat_uptr_t name_ptr;
39 #endif /* CONFIG_COMPAT */
41 #include <linux/compiler.h>
43 extern int vc_get_iattr_v0(uint32_t, void __user *);
44 extern int vc_set_iattr_v0(uint32_t, void __user *);
46 extern int vc_get_iattr(uint32_t, void __user *);
47 extern int vc_set_iattr(uint32_t, void __user *);
51 extern int vc_get_iattr_x32(uint32_t, void __user *);
52 extern int vc_set_iattr_x32(uint32_t, void __user *);
54 #endif /* CONFIG_COMPAT */
56 #endif /* __KERNEL__ */
57 #endif /* _VX_INODE_CMD_H */