IBV_QUERY_COMP_CNTR_CAPS(3)
π NAME π
okok so like β ibv_query_comp_cntr_caps β bestie this one queries completion counter capabilities. That's it, that's the whole gig β¨ (and yeah, this is the ibv_query_comp_cntr_caps(3) page from the Libibverbs Programmer's Manual, hi, welcome π«Ά)
πΈ SYNOPSIS πΈ
#include <infiniband/verbs.h>
int ibv_query_comp_cntr_caps(struct ibv_context *context,
struct ibv_comp_cntr_caps *caps);
literally just drop that include and you're in π
β¨ DESCRIPTION β¨
okay so ibv_query_comp_cntr_caps() asks the RDMA device that's hanging out behind context all about its completion counter capabilities. it's giving "vibe check the hardware before you commit" energy, and honestly? obsessed π₯
π¦ ARGUMENTS π¦
π ibv_comp_cntr_caps
this is the struct you're filling up, and she's a whole personality:
struct ibv_comp_cntr_caps {
uint64_t max_value;
uint32_t max_counters;
uint32_t supported_qp_attach_ops;
};
max_valueβ the biggest number a completion counter can hold, no cap... well, actually yes cap π. if a subsequent increment would push past this value, the counter just wraps back around to zero. bye bestie πmax_countersβ the max number of completion counters you can create on this device. that's your limit, periodt.supported_qp_attach_opsβ a bitmask ofibv_qp_attach_comp_cntr_opvalues, aka the receipts on which attach operations this device actually supports. the full list of operations lives over inibv_qp_attach_comp_cntr(3)β go look, iykyk π
π RETURN VALUE π
ibv_query_comp_cntr_caps() returns 0 on success π or, if it's not feeling it, the value of errno on failure β and that value tells you why it flopped π
π ERRORS π
ENOTSUPβ completion counters are simply not supported on this device. not her thing, not today, next question π
π SEE ALSO π
go read those too, they're the main characters of this friend group π
π§ AUTHORS π§
Michael Margolin mrgolin@amazon.com β ty for the lore π«Ά
β and that's the whole page!! brought to you by libibverbs, dated 2026-07-17, filing under ibv_query...cntr_caps(3) β slay, stay hydrated, read your manpages πβ¨π
π¦ where this page comes from
- 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms