#[repr(C)]pub struct DescriptorVmo {
pub magic: u64,
pub max_cpus: u64,
pub descriptor_table_size: u64,
}Expand description
Header layout of the kernel counter descriptor VMO (counters::DescriptorVmo).
Followed in the VMO by num_counters() entries of Descriptor, sorted by name.
Each index into that table corresponds to an index into a per-CPU array in the arena.
Fields§
§magic: u64Magic number identifying the DescriptorVmo layout (DescriptorVmo::MAGIC).
max_cpus: u64Maximum number of CPUs (SMP_MAX_CPUS).
descriptor_table_size: u64Size in bytes of the trailing descriptor table (sizeof(descriptor_table)).
Implementations§
Source§impl DescriptorVmo
impl DescriptorVmo
Sourcepub const VMO_NAME: &[u8] = b"counters/desc"
pub const VMO_NAME: &[u8] = b"counters/desc"
PA_VMO_KERNEL_FILE with this name has the DescriptorVmo layout.
Sourcepub const MAGIC: u64 = 1547273975
pub const MAGIC: u64 = 1547273975
This is time_t as of writing. Change it when changing this layout.
Sourcepub const fn num_counters(&self) -> usize
pub const fn num_counters(&self) -> usize
Returns the number of Descriptor entries in the descriptor table.
Trait Implementations§
Source§impl Clone for DescriptorVmo
impl Clone for DescriptorVmo
impl Copy for DescriptorVmo
Source§impl Debug for DescriptorVmo
impl Debug for DescriptorVmo
Source§impl Default for DescriptorVmo
impl Default for DescriptorVmo
impl Eq for DescriptorVmo
Source§impl PartialEq for DescriptorVmo
impl PartialEq for DescriptorVmo
impl StructuralPartialEq for DescriptorVmo
Auto Trait Implementations§
impl Freeze for DescriptorVmo
impl RefUnwindSafe for DescriptorVmo
impl Send for DescriptorVmo
impl Sync for DescriptorVmo
impl Unpin for DescriptorVmo
impl UnsafeUnpin for DescriptorVmo
impl UnwindSafe for DescriptorVmo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)