---
name: "rdma_destroy_qp"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/rdma_destroy_qp"
---

# rdma\_destroy\_qp(3)

Deallocate a QP.

## NAME

rdma\_destroy\_qp - Deallocate a QP.

## SYNOPSIS

**#include \<rdma/rdma\_cma.h\>**

**void rdma\_destroy\_qp** **(struct rdma\_cm\_id \****id***);**

## ARGUMENTS

- id

  RDMA identifier.

## DESCRIPTION

Destroy a QP allocated on the rdma\_cm\_id.

## NOTES

Users must destroy any QP associated with an rdma\_cm\_id before destroying the ID.

## SEE ALSO

[rdma\_create\_qp(3)](/rdma_create_qp/3.md), [rdma\_destroy\_id(3)](/rdma_destroy_id/3.md), [ibv\_destroy\_qp(3)](/ibv_destroy_qp/3.md)
