X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fvirtual.h;h=d40b922ef28f9193d87ffd3ffb1cb1fb25869712;hb=87a9b2ffba4e7ea79c95223a5d07bd570d98e834;hp=2381db7c30096ed805b0269b9b1cc46d8da69ce0;hpb=c0f7feeeebc14908bcfc50297515650ba62698ae;p=util-vserver.git 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 */