Remove any notions of rspecs from util-vserver, fix handling of resources
[util-vserver.git] / kernel / cvirt_cmd.h
1 #ifndef _VX_CVIRT_CMD_H
2 #define _VX_CVIRT_CMD_H
3
4 /* virtual host info name commands */
5
6 #define VCMD_set_vhi_name       VC_CMD(VHOST, 1, 0)
7 #define VCMD_get_vhi_name       VC_CMD(VHOST, 2, 0)
8
9 struct  vcmd_vhi_name_v0 {
10         uint32_t field;
11         char name[65];
12 };
13
14
15 enum vhi_name_field {
16         VHIN_CONTEXT=0,
17         VHIN_SYSNAME,
18         VHIN_NODENAME,
19         VHIN_RELEASE,
20         VHIN_VERSION,
21         VHIN_MACHINE,
22         VHIN_DOMAINNAME,
23 };
24
25
26 #ifdef  __KERNEL__
27
28 #include <linux/compiler.h>
29
30 extern int vc_set_vhi_name(uint32_t, void __user *);
31 extern int vc_get_vhi_name(uint32_t, void __user *);
32
33 #endif  /* __KERNEL__ */
34 #endif  /* _VX_CVIRT_CMD_H */