Struct kvm_bindings::kvm_stats_desc
source · #[repr(C)]pub struct kvm_stats_desc {
pub flags: __u32,
pub exponent: __s16,
pub size: __u16,
pub offset: __u32,
pub bucket_size: __u32,
pub name: __IncompleteArrayField<c_char>,
}
Available on x86-64 only.
Expand description
struct kvm_stats_desc - Descriptor of a KVM statistics. @flags: Annotations of the stats, like type, unit, etc. @exponent: Used together with @flags to determine the unit. @size: The number of data items for this stats. Every data item is of type __u64. @offset: The offset of the stats to the start of stat structure in structure kvm or kvm_vcpu. @bucket_size: A parameter value used for histogram stats. It is only used for linear histogram stats, specifying the size of the bucket; @name: The name string for the stats. Its size is indicated by the &kvm_stats_header->name_size.
Fields§
§flags: __u32
§exponent: __s16
§size: __u16
§offset: __u32
§bucket_size: __u32
§name: __IncompleteArrayField<c_char>
Trait Implementations§
source§impl Debug for kvm_stats_desc
impl Debug for kvm_stats_desc
source§impl Default for kvm_stats_desc
impl Default for kvm_stats_desc
source§fn default() -> kvm_stats_desc
fn default() -> kvm_stats_desc
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for kvm_stats_desc
impl RefUnwindSafe for kvm_stats_desc
impl Send for kvm_stats_desc
impl Sync for kvm_stats_desc
impl Unpin for kvm_stats_desc
impl UnwindSafe for kvm_stats_desc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more