This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / linux / vserver / namespace.h
1 #ifndef _VX_NAMESPACE_H
2 #define _VX_NAMESPACE_H
3
4 #include <linux/types.h>
5
6         
7 /* virtual host info names */
8
9 #define VCMD_vx_set_vhi_name    VC_CMD(VHOST, 1, 0)
10 #define VCMD_vx_get_vhi_name    VC_CMD(VHOST, 2, 0)
11
12 struct  vcmd_vx_vhi_name_v0 {
13         uint32_t field;
14         char name[65];
15 };
16
17
18 enum vx_vhi_name_field {
19         VHIN_CONTEXT=0,
20         VHIN_SYSNAME,
21         VHIN_NODENAME,
22         VHIN_RELEASE,
23         VHIN_VERSION,
24         VHIN_MACHINE,
25         VHIN_DOMAINNAME,
26 };
27
28
29 #ifdef  __KERNEL__
30
31 #include <linux/compiler.h>
32
33 extern int vc_set_vhi_name(uint32_t, void __user *);
34 extern int vc_get_vhi_name(uint32_t, void __user *);
35
36 #endif  /* __KERNEL__ */
37
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)
41
42 #ifdef  __KERNEL__
43
44 struct vx_info;
45 struct namespace;
46 struct fs_struct;
47
48 extern int vx_set_namespace(struct vx_info *, struct namespace *, struct fs_struct *);
49
50 extern int vc_enter_namespace(uint32_t, void __user *);
51 extern int vc_cleanup_namespace(uint32_t, void __user *);
52 extern int vc_set_namespace(uint32_t, void __user *);
53
54 #endif  /* __KERNEL__ */
55 #endif  /* _VX_NAMESPACE_H */