UMAD_SET_ADDR_NET(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_NET(3) ✨

okay so bestie, we're in the OpenIB Programmer's Manual, section 3 β€” the library functions section, iykyk πŸ’… this one's called umad_set_addr_net and it's lowkey the network-order sibling of umad_set_addr. let's get into it 🫢


🌸 NAME 🌸

umad_set_addr_net β€” set MAD address fields within a umad buffer using network ordering πŸ¦‹


✨ SYNOPSIS ✨

#include <infiniband/umad.h>

int umad_set_addr_net(void *umad, __be16 dlid, __be32 dqp, int sl, __be32 qkey);

like, one function, five args, no drama πŸ’–


πŸ’œ DESCRIPTION πŸ’œ

so umad_set_addr_net() goes into the umad buffer you hand it (that's the umad pointer, void *, very mysterious of it) and sets the MAD address fields, using the network ordered fields you pass in. no cap. 🌈

here's the tea on the arguments, bestie, don't skip this part:

  • dlid β€” the destination LID. it's a __be16, so network ordering, keep up ✨
  • dqp β€” the destination QP (queue pair). __be32, again network ordered πŸŽ€
  • sl β€” the SL (service level). just a plain int, she's built different πŸ’…
  • qkey β€” the Q_Key (queue key). __be32 πŸ’–

and yeah the whole point is that the fields are given in network ordering already β€” the _net in the name is literally telling you that. it's giving "I did the byte-swapping homework for you" energy πŸ‘‘


🫢 RETURN VALUE 🫢

umad_set_addr_net() returns 0 on success πŸŽ‰ and a negative value on errors.

heads up: right now there are literally no errors indicated. like, currently none. so if you get a negative back… that's a whole situation, but the docs say there's nothing there yet πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘


🧚 AUTHOR 🧚

Hal Rosenstock <halr@voltaire.com> β€” thank you for your service, legend 🌟


okay that's the whole page, bestie, you ate that πŸ’… this was the OpenIB manual page for UMAD_SET_ADDR_NET(3), dated May 21, 2007, and we're officially done. mwah πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from