From 561ef83011ccbe945f7214a218d4863b127a4e35 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Mon, 2 Feb 2004 18:58:31 +0000 Subject: [PATCH] added VHOST support git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@739 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/virtual.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/util-vserver/lib/virtual.h b/util-vserver/lib/virtual.h index 2381db7..d40b922 100644 --- a/util-vserver/lib/virtual.h +++ b/util-vserver/lib/virtual.h @@ -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 */ -- 1.8.1.5