UMAD_GET_CAS_NAMES(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_CAS_NAMES ✨

okay bestie, welcome to the umad_get_cas_names page from the OpenIB Programmer's Manual πŸ’… this one's short and sweet, which honestly? iconic. we're gonna get you a list of your InfiniBand device names and you're gonna slay.


🌸 NAME 🌸

umad_get_cas_names β€” get the list of available InfiniBand device names πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

#include <infiniband/umad.h>

int umad_get_cas_names(char cas[][UMAD_CA_NAME_LEN], int max);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: umad_get_cas_names() fills the cas array with up to max local IB devices β€” that's CAs, channel adapters, the whole crew β€” and it drops their names in there. πŸ‘‘

the argument cas is a character array with max entries, and each one of those entries holds UMAD_CA_NAME_LEN characters. no cap. so like, max slots, UMAD_CA_NAME_LEN chars per slot, that's the shape of it 🫢

that's literally the whole function. she's simple. she's efficient. she ate. ✨


⭐ RETURN VALUE ⭐

umad_get_cas_names() comes back with a non-negative value that equals the number of entries she filled in for you πŸ’–

...or -1 on errors 😭 which is giving "something went wrong bestie" energy. check your inputs, king.


πŸ’œ SEE ALSO πŸ’œ

go read those next, iykyk 🧚


πŸ‘‘ AUTHORS πŸ‘‘

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

shoutout to the legends who wrote this fr fr πŸ™ˆ

okay that's the whole page, you're all caught up 🌈 this was the OpenIB Programmer's Manual version of UMAD_GET_CAS_NAMES(3), dated May 21, 2007 β€” yes she's an older queen but she still hits πŸ’…βœ¨ bye bestie, go open some ports πŸ¦‹

πŸ“¦ where this page comes from