UMAD_GET_FD(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_GET_FD ✨

okay bestie, welcome to the OpenIB Programmer's Manual πŸ’– this one's a lil baby page but it's so useful, i promise. it's umad_get_fd(3), section 3, and it's giving "one job, does it well" energy. πŸŽ€


🌸 NAME 🌸

umad_get_fd β€” get the umad fd for the requested port πŸ¦‹

like. that's it. that's the whole vibe. you want the fd? this is the girl who gives you the fd. slay.


🌈 SYNOPSIS 🌈

#include <infiniband/umad.h>

int umad_get_fd(int portid);

look at her. two lines. no notes. πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

so umad_get_fd() returns the umad fd for the port specified by portid.

that's the whole thing fr fr. you hand her a portid, she hands you back the umad fd for that port. match made in heaven, no cap. 🫢


πŸ‘‘ RETURN VALUE πŸ‘‘

umad_get_fd() returns the fd for the portid requested πŸ’š

...or, if you came in there with a portid that's straight-up invalid, she hits you with -EINVAL. πŸ’€ like okay rude but fair. don't be handing her a bogus portid and expecting the fd of your dreams, bestie.

real talk: two outcomes only β€” a valid fd, or -EINVAL if portid is invalid. that's the vibe check and you either pass or you don't. πŸ™ˆ

🧚 AUTHOR 🧚

this iconic page was written by Hal Rosenstock <halr@voltaire.com> ✨ absolute legend behavior, we stan. πŸ’œ


and that's the whole page, babes!! πŸŽ€πŸ¦‹ this cutie came to you from OpenIB, dated May 17, 2007 β€” yes she's an elder but she still ate, and honestly? still iconic. go get your fds, bestie. mwah. πŸ’–πŸ’…πŸŒŸ

πŸ“¦ where this page comes from