X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fcvirt_cmd.h;h=73b72c130fe551b6db83a4429ea6715bd8afbe86;hb=be41237a12dad904d92e58373f670113bb730a24;hp=3260b9f732ae42e8c2373912946f6dfb717ac324;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/kernel/cvirt_cmd.h b/kernel/cvirt_cmd.h index 3260b9f..73b72c1 100644 --- a/kernel/cvirt_cmd.h +++ b/kernel/cvirt_cmd.h @@ -1,6 +1,7 @@ #ifndef _VX_CVIRT_CMD_H #define _VX_CVIRT_CMD_H + /* virtual host info name commands */ #define VCMD_set_vhi_name VC_CMD(VHOST, 1, 0) @@ -23,12 +24,18 @@ enum vhi_name_field { }; -#ifdef __KERNEL__ -#include +#define VCMD_virt_stat VC_CMD(VSTAT, 3, 0) -extern int vc_set_vhi_name(uint32_t, void __user *); -extern int vc_get_vhi_name(uint32_t, void __user *); +struct vcmd_virt_stat_v0 { + uint64_t offset; + uint64_t uptime; + uint32_t nr_threads; + uint32_t nr_running; + uint32_t nr_uninterruptible; + uint32_t nr_onhold; + uint32_t nr_forks; + uint32_t load[3]; +}; -#endif /* __KERNEL__ */ #endif /* _VX_CVIRT_CMD_H */