svc_rdma_copy_inline_range(9)
π svc_rdma_copy_inline_range(9) π
okay so bestie, this is a Kernel API Manual moment, section 9, and the star of the show is svc_rdma_copy_inline_range β literally the glow-up your inline content needed β¨
πΈ NAME πΈ
svc_rdma_copy_inline_range β copy part of the inline content into pages π
π¦ SYNOPSIS π¦
int svc_rdma_copy_inline_range (struct svc_rqst *rqstp , struct
svc_rdma_recv_ctxt *head , unsigned int offset , unsigned int remaining
);
π ARGUMENTS π
rqstpβ the RPC transaction context, aka the main character of this whole operation πheadβ context for the ongoing I/O, holding it down in the background fr froffsetβ where in the inline content the region you're copying actually starts πremainingβ how long the region you're copying is, like the length check no cap π
β¨ DESCRIPTION β¨
so basically: take a page at a time from rqstp->rq_pages and copy the inline content from the Receive buffer into that page. stealing pages one at a time, iconic behaviour honestly π«Ά
then update head->rc_curpage and head->rc_pageoff so that the next RDMA Read result will land contiguously with the copied content β like a perfectly queued group chat, everything in order, no gaps, slay π
Return values, and listen up:
0β inline content was successfully copied, we ate and left no crumbs π₯-EINVALβ offset or length was incorrect, the vibe check failed π
πΊ SEE ALSO πΊ
Kernel file ./net/sunrpc/xprtrdma/svc_rdma_rw.c β go read it iykyk π
and the whole friend group, all of them, every single one π
svc_rdma_destroy_rw_ctxts(9)svc_rdma_rw_ctx_init(9)svc_rdma_cc_init(9)svc_rdma_cc_release(9)svc_rdma_write_chunk_release(9)svc_rdma_reply_chunk_release(9)svc_rdma_reply_done(9)svc_rdma_write_done(9)svc_rdma_wc_read_done(9)svc_rdma_iov_write(9)svc_rdma_pages_write(9)svc_rdma_xb_write(9)svc_rdma_prepare_write_list(9)svc_rdma_prepare_reply_chunk(9)svc_rdma_build_read_segment(9)svc_rdma_build_read_chunk(9)svc_rdma_read_multiple_chunks(9)svc_rdma_read_data_item(9)svc_rdma_read_chunk_range(9)svc_rdma_read_call_chunk(9)svc_rdma_read_special(9)svc_rdma_process_read_list(9)
mwah π that's the page, bestie β brought to you by the fine folks at ./net/sunrpc/xprtrdma, dated October 2026, and this whole svc_rdma_copy_inline_range(9) situation is a mood. go forth and copy those ranges, 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