added VHOST support
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 2 Feb 2004 18:58:31 +0000 (18:58 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Mon, 2 Feb 2004 18:58:31 +0000 (18:58 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@739 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/virtual.h

index 2381db7..d40b922 100644 (file)
@@ -48,7 +48,8 @@
 */
 
 #define VC_CAT_VERSION         0
-       
+#define VC_CAT_VHOST           2
+
 #define VC_CAT_PROCTRL         12
 
 #define VC_CAT_SCHED           14
@@ -185,4 +186,23 @@ struct  vcmd_vx_info_v0 {
 };
 
 
+#define VCMD_vx_set_vhi_name           VC_CMD(VHOST, 1, 0)
+#define VCMD_vx_get_vhi_name           VC_CMD(VHOST, 2, 0)
+
+struct  vcmd_vx_vhi_name_v0 {
+       uint32_t field;
+       char name[65];
+};
+
+enum vx_vhi_name_field {
+       VHIN_CONTEXT=0,
+       VHIN_SYSNAME,
+       VHIN_NODENAME,
+       VHIN_RELEASE,
+       VHIN_VERSION,
+       VHIN_MACHINE,
+       VHIN_DOMAINNAME,
+};
+
+
 #endif /* _LINUX_VIRTUAL_H */