Struct kvm_bindings::kvm_stats_header
source · #[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§
source§impl Clone for kvm_stats_header
impl Clone for kvm_stats_header
source§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 moresource§impl Debug for kvm_stats_header
impl Debug for kvm_stats_header
source§impl Default for kvm_stats_header
impl Default for kvm_stats_header
source§fn default() -> kvm_stats_header
fn default() -> kvm_stats_header
source§impl PartialEq for kvm_stats_header
impl PartialEq for kvm_stats_header
source§fn eq(&self, other: &kvm_stats_header) -> bool
fn eq(&self, other: &kvm_stats_header) -> bool
self
and other
values to be equal, and is used
by ==
.