cvirt_cmd.h (660B)
1 #ifndef _VX_CVIRT_CMD_H 2 #define _VX_CVIRT_CMD_H 3 4 5 /* virtual host info name commands */ 6 7 #define VCMD_set_vhi_name VC_CMD(VHOST, 1, 0) 8 #define VCMD_get_vhi_name VC_CMD(VHOST, 2, 0) 9 10 struct vcmd_vhi_name_v0 { 11 uint32_t field; 12 char name[65]; 13 }; 14 15 16 enum vhi_name_field { 17 VHIN_CONTEXT=0, 18 VHIN_SYSNAME, 19 VHIN_NODENAME, 20 VHIN_RELEASE, 21 VHIN_VERSION, 22 VHIN_MACHINE, 23 VHIN_DOMAINNAME, 24 }; 25 26 27 28 #define VCMD_virt_stat VC_CMD(VSTAT, 3, 0) 29 30 struct vcmd_virt_stat_v0 { 31 uint64_t offset; 32 uint64_t uptime; 33 uint32_t nr_threads; 34 uint32_t nr_running; 35 uint32_t nr_uninterruptible; 36 uint32_t nr_onhold; 37 uint32_t nr_forks; 38 uint32_t load[3]; 39 }; 40 41 #endif /* _VX_CVIRT_CMD_H */