ibv_query_port_speed(3)
β¨ ibv_query_port_speed(3) β¨
okay so this is from the Libibverbs Programmer's Manual and honestly? it's giving "tiny function, big plot" π
πΈ NAME πΈ
ibv_query_port_speed β bestie, this one queries an RDMA port's effective bandwidth in 100Mb/s granularity. yes, that's the whole job. queen of knowing exactly what she's about π
π¦ SYNOPSIS π¦
#include <infiniband/verbs.h>
int ibv_query_port_speed(struct ibv_context *context, uint32_t port_num, uint64_t *port_speed);
π DESCRIPTION π
ibv_query_port_speed() β so what it does, right? It queries the device of the context at whatever port number you hand it, and it comes back with the effective bandwidth of that port in 100Mb/s granularity. That's it. That's the whole vibe check. no cap, it's that simple π«Ά
π ARGUMENTS π
contextβ the device context, literally the main character here. everything happens through her β¨port_numβ the device port number that needs to be queried. like, which port are we asking about, bestie? πport_speedβ the effective bandwidth of the port for the device context, in a granularity of 100 Mb/s. this is where the answer lands π
π₯ RETURN VALUE π₯
ibv_query_port_speed() returns 0 on success, or the value of errno on failure β and that errno value tells you the failure reason. so if it's not 0, something went sideways and the number is literally the receipts π
π§ NOTES π§
ok so important caveat, do not skip this one:
theport_speedpointer value is valid only when the function returns0. read it again. only then. fr fr π
π SEE ALSO π
π AUTHOR π
- Patrisious Haddad
phaddad@nvidia.com - Or Har-Toov
ohartoov@nvidia.com
that's the whole page, and it ate, no crumbs left π so this lil icon came to you from libibverbs, dated 2025-10-19, and it's the ibv_query_port_speed(3) page. go forth and query responsibly, bestie π
π
π¦ 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