svc_rdma_xb_dma_map(9)
π svc_rdma_xb_dma_map β bestie edition π
okay so real talk, this is a page from the Kernel API Manual, section 9, and it's about svc_rdma_xb_dma_map. she's iconic, she DMA maps stuff, let's get into it π«Ά
β¨ NAME β¨
svc_rdma_xb_dma_map β DMA map all segments of an xdr_buf. that's it, that's the whole job, and she does it flawlessly π
π SYNOPSIS π
int svc_rdma_xb_dma_map (const struct xdr_buf *xdr , void *data );
literally just that. two args, one int back. no cap β¨
πΈ ARGUMENTS πΈ
xdrβ thexdr_bufthat's holding the portion of an RPC message you wanna transmit. she's the payload girlie π¦dataβ a pointer to arguments. yes bestie, that's genuinely all the manpage says, don't come for me π
β RETURN β
0β DMA mapping was successful. slay! π-EIOβ DMA mapping failed. not slay. π
π¦ DESCRIPTION π¦
okay so here's the important bit, and I need you paying attention for this one π
On failure, any DMA mappings that have been already done must be unmapped by the caller.
like, the function doesn't clean up after itself if it bails halfway through β that's your problem, bestie. caller's responsibility. don't leave those mappings hanging, that's giving messy π
π SEE ALSO π
the kernel file in question: ./net/sunrpc/xprtrdma/svc_rdma_sendto.c π
and the whole friend group, the squad, the group chat:
svc_rdma_send_ctxts_destroy(9)svc_rdma_send_ctxt_get(9)svc_rdma_send_ctxts_drain(9)svc_rdma_send_ctxt_put(9)svc_rdma_wake_send_waiters(9)svc_rdma_sq_wait(9)svc_rdma_post_send_err(9)svc_rdma_wc_send(9)svc_rdma_post_send(9)svc_rdma_encode_read_list(9)svc_rdma_encode_write_segment(9)svc_rdma_encode_write_chunk(9)svc_rdma_encode_write_list(9)svc_rdma_encode_reply_chunk(9)svc_rdma_page_dma_map(9)svc_rdma_iov_dma_map(9)svc_rdma_xb_count_sges(9)svc_rdma_check_pull_up(9)svc_rdma_xb_linearize(9)svc_rdma_pull_up_reply_msg(9)svc_rdma_send_error_msg(9)svc_rdma_sendto(9)svc_rdma_result_payload(9)
like, go read them too. iykyk π§
and that's the whole page!! this lil beauty lives at ./net/sunrpc/xprtrdma and the version/date stamp says October 2026 β so, yeah, she's from the future, main character energy fr fr πβ¨π
π¦ 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