rpcrdma_cm_event_handler(9)
π 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β therdma_cm_idthat 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
1if the caller should destroyidπ₯ (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 π«Ά:
rpcrdma_flush_disconnect(9)rpcrdma_wc_send(9)rpcrdma_wc_receive(9)rpcrdma_xprt_connect(9)rpcrdma_xprt_disconnect(9)rpcrdma_sendctx_get_locked(9)rpcrdma_sendctx_unget_locked(9)rpcrdma_sendctx_put_locked(9)rpcrdma_mrs_refresh(9)rpcrdma_req_create(9)rpcrdma_req_setup(9)rpcrdma_rep_put(9)rpcrdma_buffer_create(9)rpcrdma_req_destroy(9)rpcrdma_mrs_destroy(9)rpcrdma_buffer_destroy(9)rpcrdma_mr_get(9)rpcrdma_reply_put(9)rpcrdma_buffer_get(9)rpcrdma_buffer_put(9)rpcrdma_regbuf_realloc(9)__rpcrdma_regbuf_dma_map(9)rpcrdma_post_recvs(9)
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
- 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