Function ucm_set_event_handler

Source
pub unsafe extern "C" fn ucm_set_event_handler(
    events: c_int,
    priority: c_int,
    cb: ucm_event_callback_t,
    arg: *mut c_void,
) -> ucs_status_t
Expand description

@brief Install a handler for memory events.

@param [in] events Bit-mask of events to handle. @param [in] priority Priority value which defines the order in which event callbacks are called. < 0 - called before the original implementation, >= 0 - called after the original implementation. @param [in] cb Event-handling callback. @param [in] arg User-defined argument for the callback.

@note If UCM_EVENT_FLAG_NO_INSTALL flag is passed in @a events argument, only @cb handler will be registered for @a events. No memory events/hooks will be installed.

@return Status code.