svc_rdma_pages_write(9)
π svc_rdma_pages_write(9) β like, the Kernel API Manual page, bestie β¨
okay so real talk, this is svc_rdma_pages_write from the Kernel API Manual and honestly? she's lowkey iconic. sit down, grab a strawberry drink π, and let me tell you about the girl whose whole job is Constructing RDMA Writes from pages. main character energy fr fr.
π NAME π
svc_rdma_pages_write β Construct RDMA Writes from pages π
like... that's literally her. that's the assignment. she takes pages and she constructs RDMA Writes out of them. no cap.
β¨ SYNOPSIS β¨
int svc_rdma_pages_write (struct svc_rdma_write_info *info , const
struct xdr_buf *xdr , unsigned int offset , unsigned long length );
she returns an int, and honestly the way she takes four arguments? multi-talented. we stan. π
π¦ ARGUMENTS π¦
the four besties she rolls with, in order, no line-cutting:
infoβ pointer to write arguments. that's her little bag of info, she carries it everywhere π«Άxdrβ thexdr_bufwith pages to write. this is the actual material she's working with, the pages bestie, the whole point of the function πoffsetβ offset into the content ofxdr. like starting a playlist partway through β she's skipping to this spot π§lengthβ number of bytes to write. how much of the vibe she's committing to. count them, don't guess β
πΈ RETURN πΈ
okay so this is the part where you find out how it went:
- On success β returns zero. slay. perfect. nothing to fix π
-E2BIGβ if the client-provided Write chunk is too small. like trying to fit your whole wardrobe into a carry-on π it does NOT fit and she will tell you-ENOMEMβ if a resource has been exhausted. out of resources, out of vibes, out of everything π-EIOβ if an rdma-rw error occurred. something went feral in the rdma-rw layer, not her fault, but she's reporting it π
ngl, negative returns are not a vibe, but at least she tells you exactly which negative return it is. transparency queen. π₯
π§ SEE ALSO π§
the friend group π plus the kernel file she lives in:
- Kernel file
./net/sunrpc/xprtrdma/svc_rdma_rw.c 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_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_copy_inline_range(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)
like, that's the whole group chat and every single one of them gets a mention because that's what good friends do π β¨
and that's the page!! π big mwah to ./net/sunrpc/xprtrdma for hosting her, and she's stamped October 2026 in the Kernel API Manual β go read a man page today bestie, it's giving intellectual πππ
π¦ 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