Struct simics::api::interface::interfaces::OsaMachineNotificationInterface
source · pub struct OsaMachineNotificationInterface {
obj: *mut ConfObject,
interface: *mut osa_machine_notification_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut osa_machine_notification_interface
Implementations§
source§impl OsaMachineNotificationInterface
impl OsaMachineNotificationInterface
sourcepub fn notify_mode_change(
&mut self,
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,
) -> Result<cancel_id_t>
pub fn notify_mode_change( &mut self, 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, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_exception(
&mut self,
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,
) -> Result<cancel_id_t>
pub fn notify_exception( &mut self, 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, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_control_reg(
&mut self,
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,
) -> Result<cancel_id_t>
pub fn notify_control_reg( &mut self, 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, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_exec_breakpoint(
&mut self,
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,
) -> Result<cancel_id_t>
pub fn notify_exec_breakpoint( &mut self, 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, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_read_breakpoint(
&mut self,
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,
) -> Result<cancel_id_t>
pub fn notify_read_breakpoint( &mut self, 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, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn notify_write_breakpoint(
&mut self,
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,
) -> Result<cancel_id_t>
pub fn notify_write_breakpoint( &mut self, 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, ) -> Result<cancel_id_t>
Automatically generated method for the interface
sourcepub fn cancel(
&mut self,
tracker: *mut conf_object_t,
cancel_id: cancel_id_t,
) -> Result<()>
pub fn cancel( &mut self, tracker: *mut conf_object_t, cancel_id: cancel_id_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn notify_control_reg_read(
&mut self,
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,
) -> Result<cancel_id_t>
pub fn notify_control_reg_read( &mut self, 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, ) -> Result<cancel_id_t>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for OsaMachineNotificationInterface
impl Interface for OsaMachineNotificationInterface
source§const NAME: &'static [u8] = crate::api::sys::OSA_MACHINE_NOTIFICATION_INTERFACE
const NAME: &'static [u8] = crate::api::sys::OSA_MACHINE_NOTIFICATION_INTERFACE
The name of the interface
source§type InternalInterface = osa_machine_notification_interface
type InternalInterface = osa_machine_notification_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for OsaMachineNotificationInterface
impl RefUnwindSafe for OsaMachineNotificationInterface
impl !Send for OsaMachineNotificationInterface
impl !Sync for OsaMachineNotificationInterface
impl Unpin for OsaMachineNotificationInterface
impl UnwindSafe for OsaMachineNotificationInterface
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