MLX4DV_QUERY_DEVICE(3)
π MLX4DV_QUERY_DEVICE π
okay bestie, welcome to section 3 of the Library Functions Manual β yes we're in the library functions manual, we're fancy like that π
β¨ NAME β¨
mlx4dv_query_device β the little function that goes "hey, what can this mlx4 device actually do?" πβ¨
πΈ SYNOPSIS πΈ
#include <infiniband/mlx4dv.h>
int mlx4dv_query_device(struct ibv_context *ctx_in,
struct mlx4dv_context *attrs_out);
two args, one int, so simple, so iconic π
π¦ DESCRIPTION π¦
so like, mlx4dv_query_device() asks for all the mlx4-specific device info that you can actually use through the direct verbs interface. no cap, it's giving "tell me your secrets but only the mlx4 ones" π
this function hands you back a version and a compatibility mask. the version is literally the format of the internal hardware structures that mlx4dv.h exposes β like the vibe check for the struct layout π«Ά. and if anybody adds new fields to the existing structures in the future? that's what the comp_mask field is for. she handles it. periodt. π
and here's the struct, look at her:
struct mlx4dv_context {
uint8_t version;
uint32_t max_inl_recv_sz; /* Maximum supported size of inline receive */
uint64_t comp_mask;
};
max_inl_recv_sz is the maximum supported size of inline receive, in case that wasn't clear from the comment bestie π it's right there.
π« RETURN VALUE π«
0β slay, success β¨- the value of
errnoβ not slay, failure, and that value tells you why it failed π
π NOTES π
- the compatibility mask (
comp_mask) is an in/out field β it goes both ways, she's versatile π
π₯ SEE ALSO π₯
go read those too, i'm literally obsessed with a well-cross-referenced manpage ππ
π AUTHORS π
Maor Gottlieb <maorg@mellanox.com> β thank you for your service π«‘π
ok that's the whole page bestie, nothing skipped, nothing missing, we ate that up fr fr π
version 1.0.0, dated 2017-06-27 β yes she's an elder but she's still main character energy, and this was the MLX4DV_QUERY_DEVICE(3) page, 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
- 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