Struct simics_api_sys::x86_msr_interface
source · #[repr(C)]pub struct x86_msr_interface {
pub register_handlers: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, 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)>,
pub unregister_handlers: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, number: int64)>,
pub get: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, number: int64, type_: x86_msr_access_type_t) -> x86_msr_getter_ret_t>,
pub set: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, number: int64, value: uint64, type_: x86_msr_access_type_t) -> x86_msr_ret_t>,
pub get_name: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, number: int64) -> *const c_char>,
pub get_number: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, name: *const c_char) -> int64>,
pub get_all_valid_numbers: Option<unsafe extern "C" fn(cpu: *mut conf_object_t) -> attr_value_t>,
}
Fields§
§register_handlers: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, 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)>
§unregister_handlers: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, number: int64)>
§get: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, number: int64, type_: x86_msr_access_type_t) -> x86_msr_getter_ret_t>
§set: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, number: int64, value: uint64, type_: x86_msr_access_type_t) -> x86_msr_ret_t>
§get_name: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, number: int64) -> *const c_char>
§get_number: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, name: *const c_char) -> int64>
§get_all_valid_numbers: Option<unsafe extern "C" fn(cpu: *mut conf_object_t) -> attr_value_t>
Trait Implementations§
source§impl Clone for x86_msr_interface
impl Clone for x86_msr_interface
source§fn clone(&self) -> x86_msr_interface
fn clone(&self) -> x86_msr_interface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for x86_msr_interface
impl Debug for x86_msr_interface
source§impl Default for x86_msr_interface
impl Default for x86_msr_interface
source§fn default() -> x86_msr_interface
fn default() -> x86_msr_interface
Returns the “default value” for a type. Read more
source§impl Hash for x86_msr_interface
impl Hash for x86_msr_interface
source§impl Ord for x86_msr_interface
impl Ord for x86_msr_interface
source§fn cmp(&self, other: &x86_msr_interface) -> Ordering
fn cmp(&self, other: &x86_msr_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for x86_msr_interface
impl PartialEq for x86_msr_interface
source§impl PartialOrd for x86_msr_interface
impl PartialOrd for x86_msr_interface
impl Copy for x86_msr_interface
impl Eq for x86_msr_interface
impl StructuralPartialEq for x86_msr_interface
Auto Trait Implementations§
impl Freeze for x86_msr_interface
impl RefUnwindSafe for x86_msr_interface
impl Send for x86_msr_interface
impl Sync for x86_msr_interface
impl Unpin for x86_msr_interface
impl UnwindSafe for x86_msr_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)