[−][src]Function libipt_sys::pt_image_set_callback
pub unsafe extern "C" fn pt_image_set_callback(
image: *mut pt_image,
callback: read_memory_callback_t,
context: *mut c_void
) -> c_int
Set the memory callback for the traced memory image.
Sets @callback for reading memory. The callback is used for addresses that are not found in file sections. The @context argument is passed to @callback on each use.
There can only be one callback at any time. A subsequent call will replace the previous callback. If @callback is NULL, the callback is removed.
Returns -pte_invalid if @image is NULL.