Type Alias simics_api_sys::bindings::cpu_memory_cb_t

source ·
pub type cpu_memory_cb_t = Option<unsafe extern "C" fn(obj: *mut conf_object_t, cpu: *mut conf_object_t, handle: *mut memory_handle_t, user_data: *mut lang_void)>;
Expand description
cpu_memory_cb_t cpu_memory_cb_t cpu_memory_cb_t

Instrumentation callback function registered through the cpu_instrumentation_subscribe or the cpu_cached_instruction interfaces to get a callback before or after an memory access is executed. The cpu is the processor which executed a load/store. The handle is an opaque handle associated with the instruction being executed. It can be used with the cpu_memory_query interface to get more information about the access. The user_data is the user data for the callback.

Aliased Type§

enum cpu_memory_cb_t {
    None,
    Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut conf_object, _: *mut cpu_memory_info, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut conf_object, _: *mut cpu_memory_info, _: *mut c_void))

Some value of type T.