IBV_QUERY_RT_VALUES_EX(3)
π ibv_query_rt_values_ex β bestie edition π
okay so this is a page from the Libibverbs Programmer's Manual, and the function we're stanning today is ibv_query_rt_values_ex. it's giving "let me peek at your device's real time values" energy. let's go π¦
β¨ NAME β¨
ibv_query_rt_values_ex β query an RDMA device for some real time values
no cap, that's the whole job. we ask, the device tells us. iconic.
β¨ SYNOPSIS β¨
#include <infiniband/verbs.h>
int ibv_query_rt_values_ex(struct ibv_context *context,
struct ibv_values_ex *values);
β¨ DESCRIPTION β¨
ibv_query_rt_values_ex() returns certain real time values of a device context. and babes, the manpage says the argument attr is a pointer to an ibv_device_attr_ex struct, as defined in <infiniband/verbs.h>. yes, attr. in a page whose synopsis calls it values. i'm just the messenger, i don't make the rules π anyway, here's the struct, exactly as written:
struct ibv_values_ex {
uint32_t comp_mask; /* Compatibility mask that defines the query/queried fields [in/out] */
struct timespec raw_clock; /* HW raw clock */
};
and here's the mask enum, because of course there's a mask enum, there's always a mask enum:
enum ibv_values_mask {
IBV_VALUES_MASK_RAW_CLOCK = 1 << 0, /* HW raw clock */
};
that's it. that's the whole shape of it. π
β¨ RETURN VALUE β¨
ibv_query_rt_values_ex() returns 0 on success, or the value of errno on failure (which indicates the failure reason).
so like β zero means slay, anything else means go read your errno. periodt.
β¨ NOTES β¨
this extension verb only calls the provider, fr fr. the provider has to query this value somehow, and mark the queried values in the comp_mask field. so the provider is doing the heavy lifting here, not us. we just show up and ask nicely π«Ά
β¨ SEE ALSO β¨
the whole query-verse, basically. go read them all, i'll wait π
β¨ AUTHORS β¨
- Matan Barak
<matanb@mellanox.com> - Yishai Hadas
<yishaih@mellanox.com>
heads up bestie: this extension verb only calls the provider β the provider has to actually query this value and mark what it queried in the comp_mask field. so if the mask looks empty, the provider didn't mark anything. that's on them, not you πΈ
and that's the whole page, we ate and left no crumbs π
signing off: this little beauty comes from libibverbs, dated 2016-2-20, and it lives at the top of the page as IBV_QUERY...VALUES_EX(3) in the Libibverbs Programmer's Manual. mwah π
π¦ 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