rxe_recheck_mr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rxe_recheck_mr β€” a kernel API manual moment, bestie

okay so this is rxe_recheck_mr, straight out of the Kernel API Manual (section 9, the kernel-functions section, iykyk) and honestly she's a little niche but she ATE πŸŽ€


✨ NAME ✨

rxe_recheck_mr β€” revalidate that MR from its rkey and grab a reference to it. that's literally the whole gig 🫢


🌸 SYNOPSIS 🌸

struct rxe_mr * rxe_recheck_mr (struct rxe_qp *qp , u32 rkey );

like, yes, the spacing before that comma is a little feral, but we leave code exactly as we found it, no cap πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • qp β€” the qp. that's it, that's the description, she's an icon of brevity ✨
  • rkey β€” the rkey. also extremely minimal. main character energy of saying the absolute minimum πŸŽ€

πŸ’– DESCRIPTION πŸ’–

so what this code actually does is: it lets the MR get invalidated or deregistered, or, if a MW was used, it lets that MW get invalidated or deallocated. 🌈

the assumption it's running on is lowkey huge so listen β€” it assumes that the access permissions, if they were originally good, are still OK, and that the mappings are unchanged. like it's trusting you not to be messy. πŸ™ˆ

TODO, and this is the important part, bestie: if someone reregisters an MR to change its size or its access permissions while the processing of an RDMA read is happening, we should kill the responder resource and complete the operation with an error. so like, that's the plan, not the current vibe. fr fr note the difference. πŸ’…

⭐ RETURN ⭐

mr on success, else NULL. yes bestie, check for the NULL, do not skip the vibe check 😭


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/infiniband/sw/rxe/rxe_resp.c β€” go read her, she's the whole context πŸ‘‘


kiss kiss, this page is brought to you by the fine people over at ./drivers/infiniband/sw/rxe, stamped October 2026, and honestly? iconic of them. go touch some infiniband, bestie πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from