UMAD_REGISTER_OUI(3)
π umad_register_oui β bestie's guide to the OpenIB Programmer's Manual β¨
okay so like, welcome to umad_register_oui(3) from the OpenIB Programmer's Manual π β this is the one where you slide into vendor range 2 and claim your class for a port. let's get into it fr fr π
β¨ NAME β¨
umad_register_oui β register the specified class in vendor range 2 for port π¦
πΈ SYNOPSIS πΈ
#include <infiniband/umad.h>
int umad_register_oui(int portid, int mgmt_class, uint8_t rmpp_version, uint8_t oui[3], uint32_t method_mask[4]);
π DESCRIPTION π
okay bestie, here's the vibe: umad_register_oui() registers the specified class in vendor range 2, plus the specified oui, plus whether RMPP is being used β all for the port that the portid handle points at. it's giving "this port is MINE and here's my paperwork" πβ¨
now here's the part you actually need to clock:
- if the
method_maskarray is provided, the caller gets registered as a replier (aka a server π) for the methods whose corresponding bit is turned on in themethod_mask. - if
method_maskisNULL, the caller gets registered as a MAD client instead β which lowkey means it can only receive replies on MADs that it sent itself, aka the solicited MADs π
so like, server mode or client mode, pick your fighter π₯
β RETURN VALUE β
umad_register() returns a non-negative agent id number on success π and a negative value on error, like this:
-EINVALβ invalid port handle, or the class is not in the vendor class 2 range π-EPERMβ registration failed π
π¦ SEE ALSO π¦
π AUTHOR π
Hal Rosenstock <halr@voltaire.com>
and that's the whole page, bestie!! this lil icon was brought to you by the OpenIB crew, dated May 17, 2007 β so yes, it's an elder but it still ate π β¨ go register something slay, and remember: method_mask on = server energy, method_mask NULL = client energy, no cap π«Ά
π¦ 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