Struct simics::api::interface::interfaces::CpuMemoryQueryInterface
source · pub struct CpuMemoryQueryInterface {
obj: *mut ConfObject,
interface: *mut cpu_memory_query_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut cpu_memory_query_interface
Implementations§
source§impl CpuMemoryQueryInterface
impl CpuMemoryQueryInterface
sourcepub fn logical_address(
&mut self,
handle: *mut memory_handle_t,
) -> Result<logical_address_t>
pub fn logical_address( &mut self, handle: *mut memory_handle_t, ) -> Result<logical_address_t>
Automatically generated method for the interface
sourcepub fn physical_address(
&mut self,
handle: *mut memory_handle_t,
) -> Result<physical_address_t>
pub fn physical_address( &mut self, handle: *mut memory_handle_t, ) -> Result<physical_address_t>
Automatically generated method for the interface
sourcepub fn set_host_ptr(
&mut self,
handle: *mut memory_handle_t,
p: *mut c_void,
) -> Result<()>
pub fn set_host_ptr( &mut self, handle: *mut memory_handle_t, p: *mut c_void, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn get_bytes(&mut self, handle: *mut memory_handle_t) -> Result<cpu_bytes_t>
pub fn get_bytes(&mut self, handle: *mut memory_handle_t) -> Result<cpu_bytes_t>
Automatically generated method for the interface
sourcepub fn set_bytes(
&mut self,
handle: *mut memory_handle_t,
bytes: cpu_bytes_t,
) -> Result<()>
pub fn set_bytes( &mut self, handle: *mut memory_handle_t, bytes: cpu_bytes_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn atomic(&mut self, handle: *mut memory_handle_t) -> Result<bool>
pub fn atomic(&mut self, handle: *mut memory_handle_t) -> Result<bool>
Automatically generated method for the interface
sourcepub fn arch(&mut self, handle: *mut memory_handle_t) -> Result<ini_type_t>
pub fn arch(&mut self, handle: *mut memory_handle_t) -> Result<ini_type_t>
Automatically generated method for the interface
sourcepub fn get_page_crossing_info(
&mut self,
handle: *mut memory_handle_t,
) -> Result<page_crossing_info_t>
pub fn get_page_crossing_info( &mut self, handle: *mut memory_handle_t, ) -> Result<page_crossing_info_t>
Automatically generated method for the interface
sourcepub fn get_surrounding_bytes(
&mut self,
handle: *mut memory_handle_t,
granularity_log2: c_uint,
) -> Result<buffer_t>
pub fn get_surrounding_bytes( &mut self, handle: *mut memory_handle_t, granularity_log2: c_uint, ) -> Result<buffer_t>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for CpuMemoryQueryInterface
impl Interface for CpuMemoryQueryInterface
source§const NAME: &'static [u8] = crate::api::sys::CPU_MEMORY_QUERY_INTERFACE
const NAME: &'static [u8] = crate::api::sys::CPU_MEMORY_QUERY_INTERFACE
The name of the interface
source§type InternalInterface = cpu_memory_query_interface
type InternalInterface = cpu_memory_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 CpuMemoryQueryInterface
impl RefUnwindSafe for CpuMemoryQueryInterface
impl !Send for CpuMemoryQueryInterface
impl !Sync for CpuMemoryQueryInterface
impl Unpin for CpuMemoryQueryInterface
impl UnwindSafe for CpuMemoryQueryInterface
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