1RDMA_DISCONNECT(3) Librdmacm Programmer's Manual RDMA_DISCONNECT(3)
2
3
4
6 rdma_disconnect - This function disconnects a connection.
7
9 #include <rdma/rdma_cma.h>
10
11 int rdma_disconnect (struct rdma_cm_id *id);
12
14 id RDMA identifier.
15
17 Disconnects a connection and transitions any associated QP to the error
18 state, which will flush any posted work requests to the completion
19 queue. This routine should be called by both the client and server
20 side of a connection. After successfully disconnecting, an
21 RDMA_CM_EVENT_DISCONNECTED event will be generated on both sides of the
22 connection.
23
25 Returns 0 on success, or -1 on error. If an error occurs, errno will
26 be set to indicate the failure reason.
27
29 rdma_connect(3), rdma_listen(3), rdma_accept(3), rdma_get_cm_event(3)
30
31
32
33librdmacm 2008-01-02 RDMA_DISCONNECT(3)