rdma_create_event_channel

Opens a channel that is used to report communication events.

Syntax

#include <rdma/rdma_cma.h>
struct rdma_event_channel *rdma_create_event_channel(void);

Description

The rdma_create_event_channel function reports the asynchronous events through event channels. Each event channel maps to a file descriptor.

Notes:
  • Event channels are used to direct all events on an rdma_cm_id. You might require multiple event channels when you are managing a large number of connections or CM ids.
  • All created event channels must be destroyed by calling the rdma_destroy_event_channel function. You must call the rdma_get_cm_event function to retrieve events on an event channel.

Parameters

void No arguments.

Return Value

The rdma_create_event_channel function returns 0 on success, and NULL if the request fails.

[ Feedback ]