rxe_lookup_mcg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ rxe_lookup_mcg β€” bestie's guide to finding your mcg ✨

okay so this is a page from the Kernel API Manual, and the star of the show is rxe_lookup_mcg(9) β€” like, that's the function, that's the whole vibe. it lives in the kernel, it's a lookup, and it's about to find you a mcg in a red-back tree. slay πŸ’…


🌸 NAME 🌸

rxe_lookup_mcg β€” literally just looking up mcg in a red-back tree. no cap, that's it. that's the function. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

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

so it takes the device and the gid, and hands you back a pointer to struct rxe_mcg. the way that signature is giving "I know what I'm doing" energy 😭🫢


πŸ‘‘ ARGUMENTS πŸ‘‘

  • rxe β€” the rxe device object ✨ like, the whole device you're snooping around in
  • mgid β€” multicast IP address 🌈 the thing you're trying to find, iykyk

⭐ RETURN ⭐

if it finds it, you get the mcg. if it does not find it... you get NULL. that's the whole story bestie, no plot twist πŸ’€πŸ«Ά


🧚 SEE ALSO 🧚

the kernel file is ./drivers/infiniband/sw/rxe/rxe_mcast.c and honestly the whole mcast friend group is here β€” go say hi to all of them πŸ‘‘:


and that's the page, bestie πŸŽ€ it's from ./drivers/infiniband/sw/rxe, dated October 2026, and the whole thing is filed under rxe_lookup_mcg(9) β€” go forth and look up your mcgs, you iconic main character πŸ”₯πŸ’œ

πŸ“¦ where this page comes from