UMAD_OPEN_PORT(3)
β¨ UMAD_OPEN_PORT β¨
okay bestie, gather round, because today we're opening an InfiniBand device port for umad access and it's genuinely not that deep π this little function lives in the OpenIB Programmer's Manual and it's the glow-up your HPC code has been waiting for.
πΈ NAME πΈ
umad_open_port β open an InfiniBand device port so you can do umad things with it π¦
π SYNOPSIS π
#include <infiniband/umad.h>
int umad_open_port(char *ca_name, int portnum);
π DESCRIPTION π
So here's the vibe: umad_open_port() opens port portnum of the IB device ca_name for umad access. That's it. That's the whole job. She's a simple girl with a simple dream π
And like, if you don't hand over all the parameters? No stress. The library will pick the port for you β it's giving very "I got you, bestie" energy. (The deets on how that selection actually works live over in umad_get_port(), so go peek there if you're nosy. π)
β RETURN VALUE β
On success you get 0 or a unique positive value β that's your umad device descriptor, your little ticket to ride ποΈβ¨
On error you get a negative value, and which negative value is honestly a whole mood board:
-EOPNOTSUPPβ the ABI version doesn't match π they're not on the same wavelength, it's giving incompatible-ENODEVβ the IB device can't be resolved π can't find her anywhere-EINVALβ the port is not valid (badportnumor no umad device) π« nope, not it-EIOβ the umad device for this port can't be opened π so close and yet so far
lowkey check your return values, bestie. negative means something went wrong and the kernel is NOT being subtle about it.
π¦ SEE ALSO π¦
umad_close_port(3)β because everything you open, you eventually gotta close π«Άumad_get_cas_names(3)β for finding out what CAs even exist around hereumad_get_port(3)β the one with the details about port selection π
π AUTHOR π
Hal Rosenstock <halr@voltaire.com> β an actual icon, we stan π
and that's the whole page, periodt π this beauty shipped as part of OpenIB back on May 21, 2007, and the manual name is UMAD_OPEN_PORT in section 3 β so if you ever forget, just man 3 umad_open_port and she'll be right there waiting for you. 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