Moves an rdma_cm_id to a new event channel.
#include <rdma/rdma_cma.h> int rdma_migrate_id(struct rdma_cm_id *id, struct rdma_event_channel *channel);
The rdma_migrate_id function migrates a communication identifier to a different event channel and moves any pending events associated with the rdma_cm_id to the new channel.
id | Specifies the communication identifier to migrate. |
channel | Specifies the new event channel for the rdma_cm_id events. |
0 | On success. |
-1 | Error, see errno. |
-EINVAL | If the channel or id parameter is NULL. |
-ENODATA | The write operation on channel->fd failed. |