#[repr(C)]pub struct osa_machine_notification_interface {
pub notify_mode_change: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, old_mode: processor_mode_t, new_mode: processor_mode_t)>, data: cbdata_register_t) -> cancel_id_t>,
pub notify_exception: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, exc_num: c_int, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, exc_num: c_int)>, data: cbdata_register_t) -> cancel_id_t>,
pub notify_control_reg: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg_num: c_int, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, reg_num: c_int, value: uint64)>, data: cbdata_register_t) -> cancel_id_t>,
pub notify_exec_breakpoint: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, address: uint64, len: uint64, virt: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, address: uint64)>, data: cbdata_register_t) -> cancel_id_t>,
pub notify_read_breakpoint: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, address: uint64, len: c_uint, virt: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, address: uint64, len: c_uint)>, data: cbdata_register_t) -> cancel_id_t>,
pub notify_write_breakpoint: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, address: uint64, len: c_uint, virt: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, address: uint64, len: c_uint, old_val: uint64, new_val: uint64)>, data: cbdata_register_t) -> cancel_id_t>,
pub cancel: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cancel_id: cancel_id_t)>,
pub notify_control_reg_read: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg_num: c_int, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, reg_num: c_int)>, data: cbdata_register_t) -> cancel_id_t>,
}
Fields§
§notify_mode_change: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, old_mode: processor_mode_t, new_mode: processor_mode_t)>, data: cbdata_register_t) -> cancel_id_t>
§notify_exception: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, exc_num: c_int, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, exc_num: c_int)>, data: cbdata_register_t) -> cancel_id_t>
§notify_control_reg: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg_num: c_int, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, reg_num: c_int, value: uint64)>, data: cbdata_register_t) -> cancel_id_t>
§notify_exec_breakpoint: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, address: uint64, len: uint64, virt: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, address: uint64)>, data: cbdata_register_t) -> cancel_id_t>
§notify_read_breakpoint: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, address: uint64, len: c_uint, virt: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, address: uint64, len: c_uint)>, data: cbdata_register_t) -> cancel_id_t>
§notify_write_breakpoint: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, address: uint64, len: c_uint, virt: bool, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, address: uint64, len: c_uint, old_val: uint64, new_val: uint64)>, data: cbdata_register_t) -> cancel_id_t>
§cancel: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cancel_id: cancel_id_t)>
§notify_control_reg_read: Option<unsafe extern "C" fn(obj: *mut conf_object_t, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg_num: c_int, cb: Option<unsafe extern "C" fn(data: cbdata_call_t, cpu: *mut conf_object_t, reg_num: c_int)>, data: cbdata_register_t) -> cancel_id_t>
Trait Implementations§
source§impl Clone for osa_machine_notification_interface
impl Clone for osa_machine_notification_interface
source§fn clone(&self) -> osa_machine_notification_interface
fn clone(&self) -> osa_machine_notification_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 Default for osa_machine_notification_interface
impl Default for osa_machine_notification_interface
source§fn default() -> osa_machine_notification_interface
fn default() -> osa_machine_notification_interface
Returns the “default value” for a type. Read more
source§impl Ord for osa_machine_notification_interface
impl Ord for osa_machine_notification_interface
source§fn cmp(&self, other: &osa_machine_notification_interface) -> Ordering
fn cmp(&self, other: &osa_machine_notification_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 PartialEq for osa_machine_notification_interface
impl PartialEq for osa_machine_notification_interface
source§fn eq(&self, other: &osa_machine_notification_interface) -> bool
fn eq(&self, other: &osa_machine_notification_interface) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PartialOrd for osa_machine_notification_interface
impl PartialOrd for osa_machine_notification_interface
impl Copy for osa_machine_notification_interface
impl Eq for osa_machine_notification_interface
impl StructuralPartialEq for osa_machine_notification_interface
Auto Trait Implementations§
impl Freeze for osa_machine_notification_interface
impl RefUnwindSafe for osa_machine_notification_interface
impl Send for osa_machine_notification_interface
impl Sync for osa_machine_notification_interface
impl Unpin for osa_machine_notification_interface
impl UnwindSafe for osa_machine_notification_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
)