svc_rdma_listen_handler(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… svc_rdma_listen_handler πŸ’…

okay so bestie, welcome to the svc_rdma_listen_handler(9) glow-up β€” it's a page from the Kernel API Manual and it's lowkey iconic. it's all about catching the CM events that show up on a listening endpoint, and honestly? she's doing the most with barely any lines. let's get into it ✨


🌸 SYNOPSIS 🌸

int svc_rdma_listen_handler (struct rdma_cm_id *cma_id , struct rdma_cm_event *event );

that's the whole vibe. two args, returns an int, no cap. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • cma_id β€” the server's listener rdma_cm_id, aka the main character of this function. it's the id doing the listening, periodt.
  • event β€” literally the details of the event. that's it, that's the tea. πŸ“

✨ DESCRIPTION ✨

so here's how she reports back β€” the return values are doing a whole "stay or go" thing:

  • 0 β€” do not destroy cma_id. she's staying, leave her alone πŸ’–
  • 1 β€” destroy cma_id. yeah bestie, it's over, time to clean up πŸ’€
NB: there is never a DEVICE_REMOVAL event for INADDR_ANY listeners. like, never ever. don't come looking for one, she's not showing up πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie β€” go off and handle those CM events πŸ’…βœ¨

mwah πŸ’‹ this one came to you from ./net/sunrpc/xprtrdma, dated October 2026, and it's svc_rdma_listen_handler(9) forever and always πŸŽ€

πŸ“¦ where this page comes from