rdma_notify

Notifies the asynchronous events that occurred on a queue pair (QP).

Syntax

#include <rdma/rdma_cma.h>
int rdma_notify (struct rdma_cm_id *id, enum ibv_event_type event);

Description

Notifies the librdmacm of asynchronous events that occurred on a queue pair (QP) associated with the rdma_cm_id identifier.

Note: Asynchronous events that occur on a QP are reported through the device of the user event handler. This routine is used to notify the librdmacm of communication events. In most cases, use of this routine is not necessary. However if connection establishment is done out of band (such as InfiniBand), it is possible to receive data on a QP that is not yet considered connected. This routine force the connection into an established state in order to handle situations where the connection never forms on its own. Calling this routine ensures the delivery of the RDMA_CM_EVENT_ESTABLISHED event to the application. Events to be reported to the communication manager (CM) are IB_EVENT_COMM_EST.

Parameters

id
RDMA identifier.
event
Asynchronous event.

Exit Status

= 0
Success.
= -1
Error. See errno for more details on the error.