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.
Note:
- Event channels are used to direct all events on an rdma_cm_id identifier. You might require multiple event channels when you are managing a large number of connections or connection manager (CM) ID's.
- All event channels that are created 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
Item | Description |
---|---|
void | No arguments. |
Return Value
The rdma_create_event_channel function returns 0 on success, and NULL if the request fails. On failure, errno indicates the reason for failure.