__rpcrdma_regbuf_dma_map(9)
π
__rpcrdma_regbuf_dma_map β like, the whole vibe check π
okay bestie, so this is a page straight outta the Kernel API Manual, and the star of the show is __rpcrdma_regbuf_dma_map(9). yes the double underscore is part of the name, she's β¨iconicβ¨ like that. sit down, grab a strawberry π, we're gonna DMA-map a regbuf together and it's gonna be so chill.
πΈ NAME πΈ
__rpcrdma_regbuf_dma_map β DMA-map a regbuf π
like, that's it. that's the whole job. one (1) regbuf, DMA-mapped. no cap.
β¨ SYNOPSIS β¨
bool __rpcrdma_regbuf_dma_map (struct rpcrdma_xprt *r_xprt , struct
rpcrdma_regbuf *rb );
it returns a bool, she takes two pointers, and the line break in the middle is NOT a typo, that's just how the original rolls π copy it exactly, okay?
π ARGUMENTS π
r_xprtβ the controlling transport instance π like, the boss of the whole transport situation, the main character energy of this call tbhrbβ the regbuf to be mapped π§ this is the little buffer getting its glow-up into DMA-land
π¦ DESCRIPTION π¦
Returns true if the buffer is now DMA mapped to r_xprt's device π
that's the whole plot. no twist ending. if the map went through, you get true, and the buffer is officially living its best life on r_xprt's device. obsessed tbh π«Ά
β SEE ALSO β
okay this is the part where I introduce you to the whole friend group π they're all in the kernel file ./net/sunrpc/xprtrdma/verbs.c and they all show up to the group chat together, no one gets left on read:
rpcrdma_flush_disconnect(9)rpcrdma_wc_send(9)rpcrdma_wc_receive(9)rpcrdma_cm_event_handler(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_post_recvs(9)
go read them, they're literally all so good π₯ iykyk.
π friendly reminder: this page ships out of ./net/sunrpc/xprtrdma and it's dated October 2026. screenshot it, pin it, whatever β that's the source/version and the date, bestie, and that's the tea β
k byeee, go map some buffers, ily πππΈ
π¦ 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