__rxe_lookup_mcg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __rxe_lookup_mcg (9) ✨

okay so bestie, we're in the Kernel API Manual today and this one's a lil internal helper from the RDMA crew πŸ’… it's lowkey a backstage-pass situation, so let's get into it πŸŽ€


🌸 NAME 🌸

__rxe_lookup_mcg β€” lookup mcg in rxe->mcg_tree while holding lock πŸ”’

like, the whole personality of this function is "I do my thing while you're already holding the lock," iykyk 😌


πŸ¦‹ SYNOPSIS πŸ¦‹

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

that's the whole signature, no cap ✨ two args, returns a pointer to struct rxe_mcg 🫢


πŸ’– ARGUMENTS πŸ’–

  • rxe β€” the rxe device object 🧚 your main character, the device we're digging around in
  • mgid β€” multicast IP address πŸ“¬ the thing we're looking for

πŸ”₯ CONTEXT πŸ”₯

caller must hold rxe->mcg_lock ⚠️

fr fr, this is not optional β€” the double underscore in the name is literally telling you "lock's already held, don't come in here unlocked" πŸ’€ bestie pls respect the lock πŸ™ˆ


πŸ‘‘ RETURN πŸ‘‘

on success you get mcg and it takes a ref to mcg πŸ’… (yes, you're on the hook for that reference, so be a responsible icon and drop it later ✨). otherwise you get NULL 🫠


🌈 SEE ALSO 🌈

Kernel file ./drivers/infiniband/sw/rxe/rxe_mcast.c β€” the whole multicast fam, and honestly? iconic lineup πŸŽ€


and that's the page, bestie πŸ“ this cutie lives over in ./drivers/infiniband/sw/rxe, and the version vibes are dated October 2026 β€” so yeah, future girl summer ⭐ go forth and lock responsibly πŸ’œ

πŸ“¦ where this page comes from