1 #ifndef _VX_NAMESPACE_H
2 #define _VX_NAMESPACE_H
4 #include <linux/types.h>
7 /* virtual host info names */
9 #define VCMD_vx_set_vhi_name VC_CMD(VHOST, 1, 0)
10 #define VCMD_vx_get_vhi_name VC_CMD(VHOST, 2, 0)
12 struct vcmd_vx_vhi_name_v0 {
18 enum vx_vhi_name_field {
31 #include <linux/compiler.h>
33 extern int vc_set_vhi_name(uint32_t, void __user *);
34 extern int vc_get_vhi_name(uint32_t, void __user *);
36 #endif /* __KERNEL__ */
38 #define VCMD_enter_namespace VC_CMD(PROCALT, 1, 0)
39 #define VCMD_cleanup_namespace VC_CMD(PROCALT, 2, 0)
40 #define VCMD_set_namespace VC_CMD(PROCALT, 3, 0)
49 extern int vx_check_vfsmount(struct vx_info *, struct vfsmount *);
51 extern int vx_set_namespace(struct vx_info *, struct namespace *, struct fs_struct *);
53 extern int vc_enter_namespace(uint32_t, void __user *);
54 extern int vc_cleanup_namespace(uint32_t, void __user *);
55 extern int vc_set_namespace(uint32_t, void __user *);
57 #endif /* __KERNEL__ */
58 #endif /* _VX_NAMESPACE_H */