Struct simics::api::interface::interfaces::X86MemoryOperationInterface
source · pub struct X86MemoryOperationInterface {
obj: *mut ConfObject,
interface: *mut x86_memory_operation_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut x86_memory_operation_interface
Implementations§
source§impl X86MemoryOperationInterface
impl X86MemoryOperationInterface
sourcepub fn read_logical(
&mut self,
seg: x86_seg_t,
offs: logical_address_t,
size: c_uint,
mode: x86_processor_mode_t,
access_type: x86_access_type_t,
) -> Result<uint64>
pub fn read_logical( &mut self, seg: x86_seg_t, offs: logical_address_t, size: c_uint, mode: x86_processor_mode_t, access_type: x86_access_type_t, ) -> Result<uint64>
Automatically generated method for the interface
sourcepub fn read_logical_buf(
&mut self,
dst: *mut uint8,
seg: x86_seg_t,
offs: logical_address_t,
size: c_uint,
mode: x86_processor_mode_t,
access_type: x86_access_type_t,
) -> Result<()>
pub fn read_logical_buf( &mut self, dst: *mut uint8, seg: x86_seg_t, offs: logical_address_t, size: c_uint, mode: x86_processor_mode_t, access_type: x86_access_type_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn write_logical(
&mut self,
val: uint64,
seg: x86_seg_t,
offs: logical_address_t,
size: c_uint,
mode: x86_processor_mode_t,
access_type: x86_access_type_t,
) -> Result<()>
pub fn write_logical( &mut self, val: uint64, seg: x86_seg_t, offs: logical_address_t, size: c_uint, mode: x86_processor_mode_t, access_type: x86_access_type_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn write_logical_buf(
&mut self,
src: *const uint8,
seg: x86_seg_t,
offs: logical_address_t,
size: c_uint,
mode: x86_processor_mode_t,
access_type: x86_access_type_t,
) -> Result<()>
pub fn write_logical_buf( &mut self, src: *const uint8, seg: x86_seg_t, offs: logical_address_t, size: c_uint, mode: x86_processor_mode_t, access_type: x86_access_type_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn read_physical(
&mut self,
address: physical_address_t,
size: c_uint,
access_type: x86_access_type_t,
) -> Result<x86_read_physical_ret_t>
pub fn read_physical( &mut self, address: physical_address_t, size: c_uint, access_type: x86_access_type_t, ) -> Result<x86_read_physical_ret_t>
Automatically generated method for the interface
sourcepub fn read_physical_buf(
&mut self,
dst: *mut uint8,
address: physical_address_t,
size: c_uint,
access_type: x86_access_type_t,
) -> Result<exception_type_t>
pub fn read_physical_buf( &mut self, dst: *mut uint8, address: physical_address_t, size: c_uint, access_type: x86_access_type_t, ) -> Result<exception_type_t>
Automatically generated method for the interface
sourcepub fn write_physical(
&mut self,
val: uint64,
address: physical_address_t,
size: c_uint,
access_type: x86_access_type_t,
) -> Result<exception_type_t>
pub fn write_physical( &mut self, val: uint64, address: physical_address_t, size: c_uint, access_type: x86_access_type_t, ) -> Result<exception_type_t>
Automatically generated method for the interface
sourcepub fn write_physical_buf(
&mut self,
src: *const uint8,
address: physical_address_t,
size: c_uint,
access_type: x86_access_type_t,
) -> Result<exception_type_t>
pub fn write_physical_buf( &mut self, src: *const uint8, address: physical_address_t, size: c_uint, access_type: x86_access_type_t, ) -> Result<exception_type_t>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for X86MemoryOperationInterface
impl Interface for X86MemoryOperationInterface
source§const NAME: &'static [u8] = crate::api::sys::X86_MEMORY_OPERATION_INTERFACE
const NAME: &'static [u8] = crate::api::sys::X86_MEMORY_OPERATION_INTERFACE
The name of the interface
source§type InternalInterface = x86_memory_operation_interface
type InternalInterface = x86_memory_operation_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 X86MemoryOperationInterface
impl RefUnwindSafe for X86MemoryOperationInterface
impl !Send for X86MemoryOperationInterface
impl !Sync for X86MemoryOperationInterface
impl Unpin for X86MemoryOperationInterface
impl UnwindSafe for X86MemoryOperationInterface
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