---
name: "rdma_destroy_srq"
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_srq"
---

# rdma\_destroy\_srq(3)

Deallocate a SRQ.

## NAME

rdma\_destroy\_srq - Deallocate a SRQ.

## SYNOPSIS

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

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

## ARGUMENTS

- id

  RDMA identifier.

## DESCRIPTION

Destroy an SRQ allocated on the rdma\_cm\_id.

## RETURN VALUE

Returns 0 on success, or -1 on error.  If an error occurs, errno will be set to indicate the failure reason.

## NOTES

Users should destroy any SRQ associated with an rdma\_cm\_id before destroying the ID.

## SEE ALSO

[rdma\_create\_srq(3)](/rdma_create_srq/3.md), [rdma\_destroy\_id(3)](/rdma_destroy_id/3.md), [ibv\_destroy\_srq(3)](/ibv_destroy_srq/3.md)
