rdma_destroy_qp
Releases a queue pair (QP).
Syntax
#include <rdma/rdma_cma.h>
void rdma_destroy_qp(struct rdma_cm_id *id);
Description
The rdma_destroy_qp function
destroys a QP that is allocated to an rdma_cm_id
identifier.
Note: You must destroy any QP that is associated
with an
rdma_cm_id
identifier before deleting the
ID.Parameters
Item | Description |
---|---|
id | Specifies the RDMA identifier. |
Return Value
The rdma_destroy_event_channel function returns 0 on success, or -1 on error. If an error occurs, errno indicates the reason for failure.