Struct kvm_stats_header
#[repr(C)]pub struct kvm_stats_header {
pub flags: u32,
pub name_size: u32,
pub num_desc: u32,
pub id_offset: u32,
pub desc_offset: u32,
pub data_offset: u32,
}
Expand description
struct kvm_stats_header - Header of per vm/vcpu binary statistics data. @flags: Some extra information for header, always 0 for now. @name_size: The size in bytes of the memory which contains statistics name string including trailing ‘\0’. The memory is allocated at the send of statistics descriptor. @num_desc: The number of statistics the vm or vcpu has. @id_offset: The offset of the vm/vcpu stats’ id string in the file pointed by vm/vcpu stats fd. @desc_offset: The offset of the vm/vcpu stats’ descriptor block in the file pointd by vm/vcpu stats fd. @data_offset: The offset of the vm/vcpu stats’ data block in the file pointed by vm/vcpu stats fd.
This is the header userspace needs to read from stats fd before any other readings. It is used by userspace to discover all the information about the vm/vcpu’s binary statistics. Userspace reads this header from the start of the vm/vcpu’s stats fd.
Fields§
§flags: u32
§name_size: u32
§num_desc: u32
§id_offset: u32
§desc_offset: u32
§data_offset: u32
Trait Implementations§
§impl Clone for kvm_stats_header
impl Clone for kvm_stats_header
§fn clone(&self) -> kvm_stats_header
fn clone(&self) -> kvm_stats_header
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more