svc_rdma_listen_handler(9)
π 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 listenerrdma_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 destroycma_id. she's staying, leave her alone π1β destroycma_id. yeah bestie, it's over, time to clean up π
NB: there is never aDEVICE_REMOVALevent forINADDR_ANYlisteners. like, never ever. don't come looking for one, she's not showing up π
π¦ SEE ALSO π¦
- Kernel file
./net/sunrpc/xprtrdma/svc_rdma_transport.cβ go read the source, iykyk π svc_rdma_xprt_deferred_close(9)svc_rdma_cma_handler(9)svc_rdma_free(9)
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
- 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