UMAD_SET_ADDR(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_SET_ADDR(3) ✨

okay bestie, welcome to the umad_set_addr page from the OpenIB Programmer's Manual πŸ’œ this one's a little baby function but she's important, so let's get into it 🫢


🌸 NAME 🌸

umad_set_addr β€” set MAD address fields within an umad buffer using host ordering πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <infiniband/umad.h>

int umad_set_addr(void *umad, int dlid, int dqp, int sl, int qkey);

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, umad_set_addr() sets the MAD address fields inside the umad buffer you hand it, using the host ordered fields you give it. it's giving "fill in the blanks but make it networking" ✨

here's the tea on each arg:

  • dlid β€” the destination LID 🎯
  • dqp β€” the destination QP (that's queue pair, iykyk)
  • sl β€” the SL (service level) 🌈
  • qkey β€” the Q_Key (queue key) πŸ”‘

πŸ‘‘ RETURN VALUE πŸ‘‘

umad_set_addr() returns 0 on success, and a negative value on errors. and like… currently? there are no errors indicated. so she's lowkey just vibing and always succeeding, periodt πŸ’…βœ¨


🫢 SEE ALSO 🫢


πŸ’– AUTHOR πŸ’–

Hal Rosenstock <halr@voltaire.com>


and that's the whole page, bestie πŸŽ€ she was born under the OpenIB banner, dated May 17, 2007, and she's still out here doing her little address-setting thing. no cap. go forth and set those addresses πŸ’…πŸ’–

πŸ“¦ where this page comes from