1 .\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md
2 .TH "RDMA_DESTROY_ID" 3 "2010-07-19" "librdmacm" "Librdmacm Programmer's Manual" librdmacm
4 rdma_destroy_id \- Release a communication identifier.
6 .B "#include <rdma/rdma_cma.h>"
8 .B "int" rdma_destroy_id
9 .BI "(struct rdma_cm_id *" id ");"
12 The communication identifier to destroy.
14 Destroys the specified rdma_cm_id and cancels any outstanding
15 asynchronous operation.
17 Returns 0 on success, or -1 on error. If an error occurs, errno will be
18 set to indicate the failure reason.
20 Users must free any associated QP with the rdma_cm_id before
21 calling this routine and ack all related events.
23 rdma_create_id(3), rdma_destroy_qp(3), rdma_ack_cm_event(3)