Struct simics::api::interface::interfaces::X86MemoryAccessInterface
source · pub struct X86MemoryAccessInterface {
obj: *mut ConfObject,
interface: *mut x86_memory_access_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut x86_memory_access_interface
Implementations§
source§impl X86MemoryAccessInterface
impl X86MemoryAccessInterface
sourcepub fn read_logical(
&mut self,
offs: logical_address_t,
seg: x86_seg_t,
len: c_uint,
mode: x86_processor_mode_t,
access_type: x86_access_type_t,
) -> Result<uint64>
pub fn read_logical( &mut self, offs: logical_address_t, seg: x86_seg_t, len: 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,
offs: logical_address_t,
seg: x86_seg_t,
len: c_uint,
p: *mut c_void,
mode: x86_processor_mode_t,
access_type: x86_access_type_t,
alignment: x86_alignment_t,
) -> Result<()>
pub fn read_logical_buf( &mut self, offs: logical_address_t, seg: x86_seg_t, len: c_uint, p: *mut c_void, mode: x86_processor_mode_t, access_type: x86_access_type_t, alignment: x86_alignment_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn write_logical(
&mut self,
offs: logical_address_t,
seg: x86_seg_t,
len: c_uint,
val: uint64,
mode: x86_processor_mode_t,
access_type: x86_access_type_t,
) -> Result<()>
pub fn write_logical( &mut self, offs: logical_address_t, seg: x86_seg_t, len: c_uint, val: uint64, mode: x86_processor_mode_t, access_type: x86_access_type_t, ) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for X86MemoryAccessInterface
impl Interface for X86MemoryAccessInterface
source§const NAME: &'static [u8] = crate::api::sys::X86_MEMORY_ACCESS_INTERFACE
const NAME: &'static [u8] = crate::api::sys::X86_MEMORY_ACCESS_INTERFACE
The name of the interface
source§type InternalInterface = x86_memory_access_interface
type InternalInterface = x86_memory_access_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 X86MemoryAccessInterface
impl RefUnwindSafe for X86MemoryAccessInterface
impl !Send for X86MemoryAccessInterface
impl !Sync for X86MemoryAccessInterface
impl Unpin for X86MemoryAccessInterface
impl UnwindSafe for X86MemoryAccessInterface
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