UMAD_GET_CA_PORTGUIDS(3)
π UMAD_GET_CA_PORTGUIDS π
okay bestie, welcome to the OpenIB Programmer's Manual page for umad_get_ca_portguids (that's section 3, the library-calls girlies β¨). grab a strawberry π, we're getting port GUIDs.
πΈ NAME πΈ
umad_get_ca_portguids β the one that gets you the InfiniBand device ports GUIDs. yes, plural. multiple. a whole squad of GUIDs. π
β¨ SYNOPSIS β¨
#include <infiniband/umad.h>
int umad_get_ca_portguids(char *ca_name, __be64 *portguids, int max);
look at her. three little arguments. iconic. no cap. π
π¦ DESCRIPTION π¦
so here's the tea, fr fr: umad_get_ca_portguids() fills the portguids array with up to max port GUIDs, and those GUIDs belong to the IB device you named in ca_name. π«Ά
and if you pass ca_name as NULL? no worries bestie, it just uses the default IB device instead. main character energy, honestly.
okay and important β the portguids argument is an array of max uint64_t entries. so like, that's your buffer, that's your capacity, be responsible with it. π§
π RETURN VALUE π
on success, umad_get_ca_portguids() returns a non-negative value that equals the number of port GUIDs it actually filled. slay. β
β οΈ but NOT all the filled entries may be valid, bestie. invalid entries will be 0. so don't just trust every slot, okay?? π
for example β and this is the part that trips people up β on a CA node with only one port, this function returns a value of 2. yep, two. not one. the value at index 0 will be invalid, because it's reserved for switches. so the count is the count, not the number of valid entries. iykyk. π
on failure, a negative value is returned. that's it, that's the whole vibe check. π
π SEE ALSO π
umad_get_cas_names(3)β go read that one next, she's the sister page π
π AUTHORS π
- Hal Rosenstock
<halr@voltaire.com> - Dotan Barak
<dotanb@mellanox.co.il>
give them their flowers, they wrote this and they ate. π
that's the whole page bestie, thanks for reading!! this gem came to you from OpenIB, dated August 8, 2016 πΈ β and yes, it lives at UMAD_GET_CA_PORTGUIDS(3) in case you need to find her again. 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: libibumad-dev 44.0-2 Β· BSD-MIT OR GPL-2.0-only
- debian trixie: libibumad-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: libibumad-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: libibumad-dev 50.0-2build2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: libibumad-dev 50.0-2ubuntu0.2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu questing: libibumad-dev 56.1-1ubuntu1
- ubuntu resolute: libibumad-dev 61.0-2ubuntu3 Β· BSD-MIT OR GPL-2.0-only
- ubuntu stonking: libibumad-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