rpcrdma_cm_event_handler(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rpcrdma_cm_event_handler β€” the Kernel API Manual tea πŸ«–

okay so bestie, we're in the kernel API manual today and the function we're stanning is rpcrdma_cm_event_handler β€” literally the whole job is Handle RDMA CM events ✨ that's the NAME section, we ate that πŸ’…


🌸 SYNOPSIS 🌸

int rpcrdma_cm_event_handler (struct rdma_cm_id *id , struct
rdma_cm_event *event );

like, that's it. that's the whole signature bestie. copy it exactly, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • id β€” the rdma_cm_id that an event has occurred on, iykyk πŸ‘‘
  • event β€” the actual details of the event, like the receipts of what went down πŸ’€

✨ DESCRIPTION ✨

okay so real talk: this one gets called with id's mutex held πŸ”’ β€” like, already locked, not your job to lock it, don't touch it, periodt.

and the return value? it's giving binary:

  • returns 1 if the caller should destroy id πŸ”₯ (yes literally tear it down)
  • otherwise returns 0

that's the whole vibe check. no extra lore, that's it. πŸ¦‹


πŸ‘€ SEE ALSO πŸ‘€

the kernel file lives at ./net/sunrpc/xprtrdma/verbs.c β€” go read it, it's iconic πŸŽ€

and the whole friend group of sibling functions, all of them, no skips 🫢:

like, that's a whole squad. go say hi to all of them πŸ’œ


ngl bestie, don't forget the mutex thing β€” it's already held when this runs. that's not a suggestion, that's the rules 😭

and that's the page!! this little masterpiece lives in ./net/sunrpc/xprtrdma, dated October 2026, and it's serving Kernel API Manual realness ⭐ mwah, slay, see u in the next man page πŸ§šπŸ’–

πŸ“¦ where this page comes from