#[repr(C)]pub struct cpu_memory_query_interface {
pub logical_address: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t) -> logical_address_t>,
pub physical_address: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t) -> physical_address_t>,
pub set_host_ptr: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t, p: *mut c_void)>,
pub get_bytes: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t) -> cpu_bytes_t>,
pub set_bytes: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t, bytes: cpu_bytes_t)>,
pub atomic: Option<unsafe extern "C" fn(obj: *mut conf_object_t, handle: *mut memory_handle_t) -> bool>,
pub arch: Option<unsafe extern "C" fn(obj: *mut conf_object_t, handle: *mut memory_handle_t) -> ini_type_t>,
pub get_page_crossing_info: Option<unsafe extern "C" fn(obj: *mut conf_object_t, handle: *mut memory_handle_t) -> page_crossing_info_t>,
pub get_surrounding_bytes: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t, granularity_log2: c_uint) -> buffer_t>,
}
Fields§
§logical_address: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t) -> logical_address_t>
§physical_address: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t) -> physical_address_t>
§set_host_ptr: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t, p: *mut c_void)>
§get_bytes: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t) -> cpu_bytes_t>
§set_bytes: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t, bytes: cpu_bytes_t)>
§atomic: Option<unsafe extern "C" fn(obj: *mut conf_object_t, handle: *mut memory_handle_t) -> bool>
§arch: Option<unsafe extern "C" fn(obj: *mut conf_object_t, handle: *mut memory_handle_t) -> ini_type_t>
§get_page_crossing_info: Option<unsafe extern "C" fn(obj: *mut conf_object_t, handle: *mut memory_handle_t) -> page_crossing_info_t>
§get_surrounding_bytes: Option<unsafe extern "C" fn(cpu: *mut conf_object_t, handle: *mut memory_handle_t, granularity_log2: c_uint) -> buffer_t>
Trait Implementations§
source§impl Clone for cpu_memory_query_interface
impl Clone for cpu_memory_query_interface
source§fn clone(&self) -> cpu_memory_query_interface
fn clone(&self) -> cpu_memory_query_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 cpu_memory_query_interface
impl Debug for cpu_memory_query_interface
source§impl Default for cpu_memory_query_interface
impl Default for cpu_memory_query_interface
source§fn default() -> cpu_memory_query_interface
fn default() -> cpu_memory_query_interface
Returns the “default value” for a type. Read more
source§impl Hash for cpu_memory_query_interface
impl Hash for cpu_memory_query_interface
source§impl Ord for cpu_memory_query_interface
impl Ord for cpu_memory_query_interface
source§fn cmp(&self, other: &cpu_memory_query_interface) -> Ordering
fn cmp(&self, other: &cpu_memory_query_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 PartialOrd for cpu_memory_query_interface
impl PartialOrd for cpu_memory_query_interface
impl Copy for cpu_memory_query_interface
impl Eq for cpu_memory_query_interface
impl StructuralPartialEq for cpu_memory_query_interface
Auto Trait Implementations§
impl Freeze for cpu_memory_query_interface
impl RefUnwindSafe for cpu_memory_query_interface
impl Send for cpu_memory_query_interface
impl Sync for cpu_memory_query_interface
impl Unpin for cpu_memory_query_interface
impl UnwindSafe for cpu_memory_query_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
)