UMAD_OPEN_PORT(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_OPEN_PORT(3) β€” the OpenIB Programmer's Manual, but make it cute πŸ’–

okay bestie, so this one's a little chaotic because the page is literally titled UMAD_OPEN_PORT(3) but the actual star of the show is umad_close_port()?? iconic mismatch energy, we love a plot twist 🫢 anyway it lives in the OpenIB Programmer's Manual and it's all about saying bye-bye to an InfiniBand device port. let's get into it ✨


🌸 NAME 🌸

umad_close_port β€” close an InfiniBand device port so it's no longer open for umad access. it's giving "closing time, you don't gotta go home but you gotta get out of here" πŸ’…


✨ SYNOPSIS ✨

#include <infiniband/umad.h>

int umad_close_port(int portid);

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, umad_close_port() closes the port that the handle portid is pointing at. that's it. that's the whole vibe. you hand it a portid, it closes that port, no cap πŸ’–


πŸŽ€ RETURN VALUE πŸŽ€

umad_close_port() returns 0 when everything slays, and a negative value when it does not 😭

specifically, -EINVAL gets returned if portid is not a handle to a valid (open) port. so basically if you're passing it something that isn't an actually-open port handle, it's gonna look at you like ??? and hand you that error. check your handles, bestie, fr fr πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

  • umad_open_port(3) β€” yes, the one you probably wanted, the ✨ opening ✨ counterpart. yin and yang. balance. main character energy.

πŸ’œ AUTHOR πŸ’œ

Hal Rosenstock <halr@voltaire.com> β€” the legend who wrote this 🫢


and that's the whole page, bestie!! this cutie came from the OpenIB crew, dated May 11, 2007, and it's filed under UMAD_OPEN_PORT(3) (yes, still that name, we're not gonna talk about it πŸ’€). go forth and close your ports responsibly πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from