rxe_get_mcg(9)
π 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:
rxe_mcast_add(9)rxe_mcast_del(9)__rxe_insert_mcg(9)__rxe_remove_mcg(9)__rxe_lookup_mcg(9)rxe_lookup_mcg(9)__rxe_init_mcg(9)__rxe_publish_mcg(9)rxe_cleanup_mcg(9)__rxe_destroy_mcg(9)rxe_destroy_mcg(9)__rxe_init_mca(9)rxe_attach_mcg(9)__rxe_cleanup_mca(9)rxe_detach_mcg(9)rxe_attach_mcast(9)rxe_detach_mcast(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms