UMAD_DEBUG(3)

πŸ“¦
version 65.0 Β· 2 versions
  • 65.0 Β· alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.3.10.2 Β· nixos 26.05, nixpkgs unstable
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– UMAD_DEBUG(3) β€” the umad_debug page, bestie edition πŸ’–

okay so this is the manual for umad_debug from the OpenIB Programmer's Manual, and honestly? it's short, it's sweet, it's giving "one tiny function that controls how chatty the library is." πŸŽ€


✨ NAME ✨

umad_debug β€” set debug level πŸ’…


🌸 SYNOPSIS 🌸

#include <infiniband/umad.h>

int umad_debug(int level);

like. that's the whole vibe. one include, one function, no drama. πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

so umad_debug() sets the umad library's internal debug level to level. that's it, that's the job, and it does it flawlessly no cap. ✨

here are the levels it supports, bestie, memorize them:

  • 0 β€” no debug at all. this is the default. silent, mysterious, main character energy. 🀫
  • 1 β€” basic debug info. a lil peek behind the curtain. πŸ‘€
  • 2 β€” verbose debug info. she's telling you EVERYTHING. 😭
⚠️ heads up: negative values are ignored in terms of set β€” so like, don't think you can pass a negative number and change the level, because you literally cannot. 🚫

BUT. and this is the cute lil plot twist: you can query the current debug level by passing a negative value as level. so negatives don't set anything, they just tell you things. it's giving ✨look but don't touch✨. πŸ”


πŸ‘‘ RETURN VALUE πŸ‘‘

umad_debug() returns the actual debug level. so whatever it ends up being, you get it back. she always answers. 🫢


🌈 AUTHORS 🌈

  • Hal Rosenstock <halr@voltaire.com>
  • Dotan Barak <dotanb@mellanox.co.il>

icons. legends. the blueprint. πŸ’–


and that's the whole page!! this came to you from OpenIB, dated May 21, 2007, and yes the manual section is 3 (library functions, iykyk). mwah, go set ur debug level responsibly bestie πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from