Listens for incoming connection requests.
#include <rdma/rdma_cma.h> int rdma_listen(struct rdma_cm_id *id, int backlog);
The rdma_listen function initiates a listen for incoming connection requests lookup. The listen operation is restricted to the locally bound source addresses.
| id | Specifies the RDMA identifier. |
| backlog | Specifies the backlog of incoming connection requests. |
| 0 | On success. |
| -1 | Error, see errno. |
| -EINVAL | If the id parameter is NULL. |
| -ENODATA | The write operation on id->channel->fd failed. |
| -ENOMEM | There is not enough space to allocate by malloc. |
| -ENODEV | Unable to get an RDMA device. |