rdma_ack_cm_event
Frees a communication event.
Syntax
#include <rdma/rdma_cma.h>
int rdma_ack_cm_event(struct rdma_cm_event *event);
Description
All events that are allocated by the rdma_get_cm_event function must be released. There must be a one-to-one correspondence between the events that are retrieved from a queue and events being released. The rdma_ack_cm_event function releases the event structure and any memory that it references.
Parameters
Item | Description |
---|---|
event | Specifies the event to be released. |
Return Values
The rdma_ack_cm_event function
returns the following values:
Item | Description |
---|---|
0 | On success. |
-1 | If an error occurs, errno specifies the reason for failure. |