RDMA_DESTROY_SRQ(3)
π RDMA_DESTROY_SRQ π
okay bestie, welcome to the librdmacm programmer's manual β¨ this one's a shortie but a goodie, and it lives in section 3 of the manual (that's the library-calls section, iykyk).
πΈ NAME πΈ
rdma_destroy_srq β deallocate a SRQ π«Ά
like. it destroys it. it's gone. bye girl π
β¨ SYNOPSIS β¨
#include <rdma/rdma_verbs.h>
void rdma_destroy_srq (struct rdma_cm_id *id);
π ARGUMENTS π
idβ the RDMA identifier. that's the whole vibe, she's just one parameter and she knows it π
π¦ DESCRIPTION π¦
So basically? You're destroying an SRQ that was allocated on the rdma_cm_id. That's it. That's the whole function. She's giving short and efficient, no notes, ate and left no crumbs π
β¨
π RETURN VALUE π
None. Not a thing. Zero. Nada. She returns void and she's not sorry about it π
π NOTES π
okay this part is IMPORTANT, listen up bestie: users should destroy any SRQ associated with an rdma_cm_id before destroying the ID. Like, clean up your room before you move out fr fr π§Ήπ don't leave that SRQ hanging.
π SEE ALSO π
rdma_create_srq(3)β the glow-up (creation) counterpart πrdma_destroy_id(3)β destroy the ID itself, but only after the SRQ, remember?? πibv_destroy_srq(3)β the verbs-level one, the OG underneath it all β
and that's the whole page, no cap. this iconic little entry came to you courtesy of librdmacm, dated 2011-06-15 β she's been serving correct SRQ destruction since way before it was cool πβ¨ mwah, go forth and free your memory responsibly π«Άπ
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- arch rolling: rdma-core 65.0-1 Β· GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-MIT AND GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-FreeBSD AND GPL-2.0-or-later OR LicenseRef-Intel-BSD-3-Clause AND GPL-2.0-or-later OR LicenseRef-PathScale-BSD-Patent-License AND CC0-1.0 AND MIT AND BSD-2-Clause AND CPL-1.0 OR BSD-2-Clause OR GPL-2.0-or-later
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- debian bookworm: librdmacm-dev 44.0-2 Β· BSD-MIT OR GPL-2.0-only
- debian trixie: librdmacm-dev 56.1-1 Β· BSD-MIT OR GPL-2.0-only
- fedora 43: rdma-core-devel 58.0-4.fc43 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 43: rdma-core-devel 58.0-4.fc43 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.0-2.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.0-2.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.1^20260812git975bdaf-1.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.1^20260812git975bdaf-1.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- nixos 26.05: rdma-core 62.0
- nixpkgs unstable: rdma-core 65.0
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- ubuntu jammy: librdmacm-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: librdmacm-dev 50.0-2build2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: librdmacm-dev 50.0-2ubuntu0.2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu questing: librdmacm-dev 56.1-1ubuntu1
- ubuntu resolute: librdmacm-dev 61.0-2ubuntu3 Β· BSD-MIT OR GPL-2.0-only
- ubuntu stonking: librdmacm-dev 64.0-1ubuntu1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms