RDMA_LEAVE_MULTICAST(3)

πŸ’… rdma_leave_multicast β€” bestie, we're LEAVING πŸ’…

okay so this is rdma_leave_multicast(3) from the Librdmacm Programmer's Manual, and it's giving "exit the group chat, gracefully, with your head held high" energy. no cap.


🌸 NAME 🌸

rdma_leave_multicast β€” leaves a multicast group. that's it. that's the whole vibe. say bye bestie πŸ‘‹


✨ SYNOPSIS ✨

#include <rdma/rdma_cma.h>

int rdma_leave_multicast (struct rdma_cm_id *id, struct sockaddr *addr);

two args, one exit, zero drama (hopefully).


πŸŽ€ ARGUMENTS πŸŽ€

  • id β€” the communication identifier that's associated with the request. it's the lil handle that knows who you are and what you're up to 🫢
  • addr β€” the multicast address that identifies the group you're about to leave. yeah, you gotta name names. we're pointing at the group and going "not you anymore" πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it actually do? it leaves a multicast group, and it detaches an associated QP from that group. that's the whole thing. you were in, now you're out, and your QP is coming with you. main character exit, honestly πŸ‘‘


⭐ RETURN VALUE ⭐

  • returns 0 on success πŸŽ‰ β€” slay, you left
  • returns -1 on error 😭 β€” and if that happens, errno gets set to indicate the failure reason, so go read it, it's literally telling you what went wrong

πŸ’œ NOTES πŸ’œ

  • calling this function before a group has been fully joined? that results in canceling the join operation. so it's not a no-op, it's a "never mind, actually" πŸ™ˆ
  • important, listen up: users should be aware that messages received from the multicast group may still be queued for completion processing immediately after leaving a multicast group. so like… you left the party but your texts are still arriving. don't be surprised, bestie πŸ”₯
  • destroying an rdma_cm_id will automatically leave all multicast groups. so if you're feeling lazy, that's your cleanup era ✨

🌈 SEE ALSO 🌈


that's the whole page, you ate it, periodt πŸ’…βœ¨

sign-off szn: this was librdmacm, dated 2007-05-15, and the page is RDMA_LEAVE_MULTICAST(3) β€” mwah, go leave a multicast group responsibly πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from