Struct simics::api::interface::interfaces::OsaMachineQueryInterface
source · pub struct OsaMachineQueryInterface {
obj: *mut ConfObject,
interface: *mut osa_machine_query_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut osa_machine_query_interface
Implementations§
source§impl OsaMachineQueryInterface
impl OsaMachineQueryInterface
sourcepub fn read_register(
&mut self,
tracker: *mut conf_object_t,
cpu: *mut conf_object_t,
reg: c_int,
) -> Result<uint64>
pub fn read_register( &mut self, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg: c_int, ) -> Result<uint64>
Automatically generated method for the interface
sourcepub fn get_register_number(
&mut self,
tracker: *mut conf_object_t,
cpu: *mut conf_object_t,
reg: *const c_char,
) -> Result<c_int>
pub fn get_register_number( &mut self, tracker: *mut conf_object_t, cpu: *mut conf_object_t, reg: *const c_char, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn read_phys_memory(
&mut self,
tracker: *mut conf_object_t,
cpu: *mut conf_object_t,
addr: physical_address_t,
len: osa_read_len_t,
) -> Result<AttrValue>
pub fn read_phys_memory( &mut self, tracker: *mut conf_object_t, cpu: *mut conf_object_t, addr: physical_address_t, len: osa_read_len_t, ) -> Result<AttrValue>
Automatically generated method for the interface
sourcepub fn read_phys_bytes(
&mut self,
tracker: *mut conf_object_t,
cpu: *mut conf_object_t,
paddr: physical_address_t,
len: c_uint,
) -> Result<AttrValue>
pub fn read_phys_bytes( &mut self, tracker: *mut conf_object_t, cpu: *mut conf_object_t, paddr: physical_address_t, len: c_uint, ) -> Result<AttrValue>
Automatically generated method for the interface
sourcepub fn virtual_to_physical(
&mut self,
tracker: *mut conf_object_t,
cpu: *mut conf_object_t,
vaddr: uint64,
) -> Result<AttrValue>
pub fn virtual_to_physical( &mut self, tracker: *mut conf_object_t, cpu: *mut conf_object_t, vaddr: uint64, ) -> Result<AttrValue>
Automatically generated method for the interface
sourcepub fn cpu_mode(
&mut self,
tracker: *mut conf_object_t,
cpu: *mut conf_object_t,
) -> Result<processor_mode_t>
pub fn cpu_mode( &mut self, tracker: *mut conf_object_t, cpu: *mut conf_object_t, ) -> Result<processor_mode_t>
Automatically generated method for the interface
sourcepub fn get_all_processors(
&mut self,
tracker: *mut conf_object_t,
) -> Result<AttrValue>
pub fn get_all_processors( &mut self, tracker: *mut conf_object_t, ) -> Result<AttrValue>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for OsaMachineQueryInterface
impl Interface for OsaMachineQueryInterface
source§const NAME: &'static [u8] = crate::api::sys::OSA_MACHINE_QUERY_INTERFACE
const NAME: &'static [u8] = crate::api::sys::OSA_MACHINE_QUERY_INTERFACE
The name of the interface
source§type InternalInterface = osa_machine_query_interface
type InternalInterface = osa_machine_query_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 OsaMachineQueryInterface
impl RefUnwindSafe for OsaMachineQueryInterface
impl !Send for OsaMachineQueryInterface
impl !Sync for OsaMachineQueryInterface
impl Unpin for OsaMachineQueryInterface
impl UnwindSafe for OsaMachineQueryInterface
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