Function uct_iface_set_am_handler

Source
pub unsafe extern "C" fn uct_iface_set_am_handler(
    iface: uct_iface_h,
    id: u8,
    cb: uct_am_callback_t,
    arg: *mut c_void,
    flags: u32,
) -> ucs_status_t
Expand description

@ingroup UCT_AM @brief Set active message handler for the interface.

Only one handler can be set of each active message ID, and setting a handler replaces the previous value. If cb == NULL, the current handler is removed.

@param [in] iface Interface to set the active message handler for. @param [in] id Active message id. Must be 0..UCT_AM_ID_MAX-1. @param [in] cb Active message callback. NULL to clear. @param [in] arg Active message argument. @param [in] flags Required @ref uct_cb_flags “callback flags”

@return error code if the interface does not support active messages or requested callback flags