---
name: "rdma_destroy_srq"
section: "3"
platform: "linux"
package: "rdma-core"
version: "65.0-1"
release: "Arch Linux 2026-11-01"
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

None

## 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)
