UMAD_UNREGISTER(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_UNREGISTER β€” bestie edition πŸ’–

okay so this is umad_unregister, from the OpenIB Programmer's Manual, section 3. it's the lil cleanup babe of the umad world. we're unregistering an agent. that's the whole vibe. ✨


✨ NAME ✨

umad_unregister β€” unregister a umad agent, aka the goodbye girl πŸ’…


🌸 SYNOPSIS 🌸

#include <infiniband/umad.h>

int umad_unregister(int portid, int agentid);

like. two ints. in. one int out. so demure. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so umad_unregister() unregisters the agent you specify with agentid, and bestie, that agentid has to be one you previously registered β€” either with umad_register() or with umad_register_oui(). no drive-by unregistering. it has to be YOUR agent. main character only. πŸ‘‘

think of it as closing the tab. you opened it, you get to close it. no cap. 🫢


πŸ”₯ RETURN VALUE πŸ”₯

umad_unregister() returns 0 on success β€” iconic, we love a clean exit β€” and a negative value on error, like this:

  • -EINVAL β€” invalid port handle or agentid 😭 the vibes were off, something you passed in wasn't it
  • * β€” (kernel error codes) πŸ‘€ yeah, the kernel has OPINIONS and it will let you know
ngl if you get a negative number back, that's your sign. check your portid and your agentid before you blame anyone else. fr fr. πŸ’€

πŸ’œ SEE ALSO πŸ’œ

the whole friend group. go read them. iykyk. 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Hal Rosenstock <halr@voltaire.com> β€” the legend, the blueprint, the origin story. πŸ’–


and that's the tea, bestie πŸ“ this page is from the OpenIB crew, dated May 21, 2007, and it's literally a classic. now go unregister something responsibly. slay. βœ¨πŸ’…πŸ¦‹

πŸ“¦ where this page comes from