rxe_get_mcg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rxe_get_mcg(9) β€” the Kernel API Manual, but make it make sense

okay so bestie, we're in the Kernel API Manual today and this page is literally called rxe_get_mcg. yes the name is a mouthful, no we are not skipping it. πŸ’–


✨ NAME ✨

rxe_get_mcg β€” lookup or allocate a mcg

like, you either find the one that already exists or you make a new one. it's giving "if it's not there, build it" energy. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct rxe_mcg * rxe_get_mcg (struct rxe_dev *rxe , union ib_gid *mgid
);

that's the whole incantation, copy it exactly, no cap. πŸ”₯


🌸 ARGUMENTS 🌸

  • rxe β€” the rxe device object. your main character struct, the one doing the work πŸ’…
  • mgid β€” the multicast IP address, but served to you as a gid. same vibe, different outfit ✨

πŸ‘‘ RETURN πŸ‘‘

you get the mcg on success. that's the win, that's the slay 🫢

and if it doesn't work out? you get ERR_PTR(error). not a null, not a shrug, an actual error pointer. check it, bestie, i'm begging 😭

fr fr: ERR_PTR(error) is not a valid mcg. test it before you dereference it or the kernel will simply end you πŸ’€

🌈 SEE ALSO 🌈

all the siblings and cousins live in the kernel file ./drivers/infiniband/sw/rxe/rxe_mcast.c, and here's the whole group chat:

that's seventeen functions, i counted, and every single one of them is staying on this list. obsessed with the completeness πŸ§šπŸ’œ


ngl the double-underscore ones are the ✨private✨ ones β€” you didn't hear it from me πŸ™ˆ

and that's the page!! sign-off time: this whole thing lives in ./drivers/infiniband/sw/rxe, and it's dated October 2026. mwah, go look up your mcg responsibly πŸ’‹πŸŽ€πŸ¦‹β­

πŸ“¦ where this page comes from