UMAD_CLASS_STR(3)
π UMAD_CLASS_STR(3) β the OpenIB Programmer's Manual, but make it cute π
okay bestie, so this is umad_class_str (that's the manual page name, it's giving "family of functions") and it's your little translator bestie for enums. like, you got a number, and you want a word? say less. π¦
β¨ NAME β¨
umad_*_str β a whole class of functions that return string representations of enums π
πΈ SYNOPSIS πΈ
#include <infiniband/umad_str.h>
const char * umad_class_str(uint8_t mgmt_class)
const char * umad_method_str(uint8_t mgmt_class, uint8_t method)
const char * umad_attribute_str(uint8_t mgmt_class, be16_t attr_id)
const char * umad_common_mad_status_str(be16_t status)
const char * umad_sa_mad_status_str(be16_t status)
π DESCRIPTION π
const char * umad_class_str(uint8_t mgmt_class)β hands you the string value of a management class enum, fr fr. π«Άconst char * umad_method_str(uint8_t mgmt_class, uint8_t method)β gives you the string value of the method, specifically for themgmt_classyou passed in. it's method behavior, tailored. β¨const char * umad_attribute_str(uint8_t mgmt_class, be16_t attr_id)β returns the string value of whatever attribute is chillin' inattr_id, based on themgmt_classyou specified. yes, the class matters here, it's a whole vibe check. πconst char * umad_common_mad_status_str(be16_t status)β returns the string value for common MAD status values. the basics, the everyday icons. πconst char * umad_sa_mad_status_str(be16_t status)β returns the string value for SA MAD status values. SA-specific, she's special. π
NOTE: Not all classes are supported. π so likeβ¦ don't come for her when your niche class gets nothing back. it's not her fault, it's literally in the manual.
β RETURN VALUE β
Returns a string representation of the fields you specified. that's it, that's the whole thing β strings, back to you, slay. π
π« AUTHOR π«
Ira Weiny <weiny2@llnl.gov> β the icon, the legend, the main character who wrote this. π
and that's the whole page bestie!! this came from the OpenIB crew, dated Feb 15, 2013, and it lives in the OpenIB manual section 3. go forth and stringify your enums, 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