#[repr(C)]pub struct osa_machine_query_interface {
pub read_register: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg: c_int) -> uint64>,
pub get_register_number: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg: *const c_char) -> c_int>,
pub read_phys_memory: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, addr: physical_address_t, len: osa_read_len_t) -> attr_value_t>,
pub read_phys_bytes: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, paddr: physical_address_t, len: c_uint) -> attr_value_t>,
pub virtual_to_physical: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, vaddr: uint64) -> attr_value_t>,
pub cpu_mode: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t) -> processor_mode_t>,
pub get_all_processors: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t) -> attr_value_t>,
pub get_exception_number: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, name: *const c_char) -> c_int>,
}
Fields§
§read_register: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg: c_int) -> uint64>
§get_register_number: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg: *const c_char) -> c_int>
§read_phys_memory: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, addr: physical_address_t, len: osa_read_len_t) -> attr_value_t>
§read_phys_bytes: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, paddr: physical_address_t, len: c_uint) -> attr_value_t>
§virtual_to_physical: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, vaddr: uint64) -> attr_value_t>
§cpu_mode: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t) -> processor_mode_t>
§get_all_processors: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t) -> attr_value_t>
§get_exception_number: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, name: *const c_char) -> c_int>
Trait Implementations§
source§impl Clone for osa_machine_query_interface
impl Clone for osa_machine_query_interface
source§fn clone(&self) -> osa_machine_query_interface
fn clone(&self) -> osa_machine_query_interface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for osa_machine_query_interface
impl Debug for osa_machine_query_interface
source§impl Default for osa_machine_query_interface
impl Default for osa_machine_query_interface
source§fn default() -> osa_machine_query_interface
fn default() -> osa_machine_query_interface
Returns the “default value” for a type. Read more
source§impl Hash for osa_machine_query_interface
impl Hash for osa_machine_query_interface
source§impl Ord for osa_machine_query_interface
impl Ord for osa_machine_query_interface
source§fn cmp(&self, other: &osa_machine_query_interface) -> Ordering
fn cmp(&self, other: &osa_machine_query_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialOrd for osa_machine_query_interface
impl PartialOrd for osa_machine_query_interface
impl Copy for osa_machine_query_interface
impl Eq for osa_machine_query_interface
impl StructuralPartialEq for osa_machine_query_interface
Auto Trait Implementations§
impl Freeze for osa_machine_query_interface
impl RefUnwindSafe for osa_machine_query_interface
impl Send for osa_machine_query_interface
impl Sync for osa_machine_query_interface
impl Unpin for osa_machine_query_interface
impl UnwindSafe for osa_machine_query_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)