Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / include / linux / vserver / cvirt_cmd.h
1 #ifndef _VX_CVIRT_CMD_H
2 #define _VX_CVIRT_CMD_H
3
4
5 /* virtual host info name commands */
6
7 #define VCMD_set_vhi_name       VC_CMD(VHOST, 1, 0)
8 #define VCMD_get_vhi_name       VC_CMD(VHOST, 2, 0)
9
10 struct  vcmd_vhi_name_v0 {
11         uint32_t field;
12         char name[65];
13 };
14
15
16 enum vhi_name_field {
17         VHIN_CONTEXT=0,
18         VHIN_SYSNAME,
19         VHIN_NODENAME,
20         VHIN_RELEASE,
21         VHIN_VERSION,
22         VHIN_MACHINE,
23         VHIN_DOMAINNAME,
24 };
25
26
27 #ifdef  __KERNEL__
28
29 #include <linux/compiler.h>
30
31 extern int vc_set_vhi_name(uint32_t, void __user *);
32 extern int vc_get_vhi_name(uint32_t, void __user *);
33
34 #endif  /* __KERNEL__ */
35 #endif  /* _VX_CVIRT_CMD_H */