Struct simics::api::interface::interfaces::X86MsrInterface
source · pub struct X86MsrInterface {
obj: *mut ConfObject,
interface: *mut x86_msr_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut x86_msr_interface
Implementations§
source§impl X86MsrInterface
impl X86MsrInterface
sourcepub fn register_handlers(
&mut self,
number: int64,
getter: x86_msr_getter_func_t,
getter_data: *mut lang_void,
setter: x86_msr_setter_func_t,
setter_data: *mut lang_void,
name: *const c_char,
) -> Result<()>
pub fn register_handlers( &mut self, number: int64, getter: x86_msr_getter_func_t, getter_data: *mut lang_void, setter: x86_msr_setter_func_t, setter_data: *mut lang_void, name: *const c_char, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn unregister_handlers(&mut self, number: int64) -> Result<()>
pub fn unregister_handlers(&mut self, number: int64) -> Result<()>
Automatically generated method for the interface
sourcepub fn get(
&mut self,
number: int64,
type_: x86_msr_access_type_t,
) -> Result<x86_msr_getter_ret_t>
pub fn get( &mut self, number: int64, type_: x86_msr_access_type_t, ) -> Result<x86_msr_getter_ret_t>
Automatically generated method for the interface
sourcepub fn set(
&mut self,
number: int64,
value: uint64,
type_: x86_msr_access_type_t,
) -> Result<x86_msr_ret_t>
pub fn set( &mut self, number: int64, value: uint64, type_: x86_msr_access_type_t, ) -> Result<x86_msr_ret_t>
Automatically generated method for the interface
sourcepub fn get_name(&mut self, number: int64) -> Result<*const c_char>
pub fn get_name(&mut self, number: int64) -> Result<*const c_char>
Automatically generated method for the interface
sourcepub fn get_number(&mut self, name: *const c_char) -> Result<int64>
pub fn get_number(&mut self, name: *const c_char) -> Result<int64>
Automatically generated method for the interface
sourcepub fn get_all_valid_numbers(&mut self) -> Result<AttrValue>
pub fn get_all_valid_numbers(&mut self) -> Result<AttrValue>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for X86MsrInterface
impl Interface for X86MsrInterface
source§type InternalInterface = x86_msr_interface
type InternalInterface = x86_msr_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 X86MsrInterface
impl RefUnwindSafe for X86MsrInterface
impl !Send for X86MsrInterface
impl !Sync for X86MsrInterface
impl Unpin for X86MsrInterface
impl UnwindSafe for X86MsrInterface
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