IBV_QUERY_SRQ(3)
π IBV_QUERY_SRQ π
okay bestie, welcome to ibv_query_srq β a page straight out of the Libibverbs Programmer's Manual, section 3. this one's short, sweet, and honestly kinda iconic for it. let's get into it π«Ά
β¨ NAME β¨
ibv_query_srq β get the attributes of a shared receive queue (SRQ) π
πΈ SYNOPSIS πΈ
#include <infiniband/verbs.h>
int ibv_query_srq(struct ibv_srq *srq, struct ibv_srq_attr *srq_attr);
π¦ DESCRIPTION π¦
so what does ibv_query_srq() actually do, you ask? it gets the attributes of the SRQ srq and hands them right back to you through the pointer srq_attr. no cap, that's the whole job. π
the argument srq_attr is an ibv_srq_attr struct, as defined in <infiniband/verbs.h>. and here's what that lil guy looks like:
struct ibv_srq_attr {
uint32_t max_wr; /* maximum number of outstanding work requests (WRs) in the SRQ */
uint32_t max_sge; /* maximum number of scatter elements per WR */
uint32_t srq_limit; /* the limit value of the SRQ */
};
look at those three fields, so demure, so mindful:
max_wrβ the maximum number of outstanding work requests (WRs) in the SRQ π₯max_sgeβ the maximum number of scatter elements per WR β¨srq_limitβ the limit value of the SRQ π
π« RETURN VALUE π«
ibv_query_srq() returns 0 on success, or the value of errno on failure (which, yes, indicates the failure reason β she's communicative like that πββοΈ).
π NOTES π
okay this one actually matters, so pay attention bestie π
if the value returned for srq_limit is 0, then the SRQ limit reached ("low watermark") event is not (or no longer) armed, and no asynchronous events will be generated until the event is rearmed. it's giving "asleep at the wheel" π΄ so if you were waiting on a signal, she's not coming until you rearm. periodt.
π SEE ALSO π
the whole SRQ friend group, fr fr. iykyk π§
π AUTHORS π
Dotan Barak <dotanba@gmail.com> β thank you for your service, king π«‘
and that's the page!! mwah π brought to you by libibverbs, dated 2006-10-31 β yes she's an elder but she still ate, and she's still serving IBV_QUERY_SRQ(3) energy every single day. bye bestie, go query something πΈπ¦β¨
π¦ 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: libibverbs-dev 44.0-2 Β· BSD-MIT OR GPL-2.0-only
- debian trixie: libibverbs-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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- 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: libibverbs-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: libibverbs-dev 50.0-2build2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: libibverbs-dev 50.0-2ubuntu0.2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu questing: libibverbs-dev 56.1-1ubuntu1
- ubuntu resolute: libibverbs-dev 61.0-2ubuntu3 Β· BSD-MIT OR GPL-2.0-only
- ubuntu stonking: libibverbs-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