svc_rdma_en...rite_segment(9)
π svc_rdma_encode_write_segment(9) β like, the Kernel API Manual entry bestie π
okay so this is svc_rdma_encode_write_segment, straight out of the Kernel API Manual, and it's genuinely just doing one little job for you: encoding one Write segment. that's it. that's the whole vibe. β¨
πΈ NAME πΈ
svc_rdma_encode_write_segment β Encode one Write segment π
β¨ SYNOPSIS β¨
ssize_t svc_rdma_encode_write_segment (struct svc_rdma_send_ctxt *sctxt
, const struct svc_rdma_chunk *chunk , u32 *remaining , unsigned int
segno );
no cap, that's the whole signature. copy it exactly, don't @ me π«Ά
π¦ ARGUMENTS π¦
okay bestie let's meet the cast, they all have main character energy in their own way:
sctxtβ the send context for the RPC Reply. she's the stage the whole thing happens on πchunkβ the Write chunk you're pushing. yes, this one. go off πremainingβ the remaining bytes of the payload left in the Write chunk. it's giving "how much room is left in the suitcase" π§³segnoβ which segment in the chunk. like, which one are we doing rn, bestie π
π₯ DESCRIPTION π₯
so here's the return-value tea, and it's short and sweet:
- On success it returns the length in bytes of the Reply XDR buffer that was consumed by the Write segment β and it updates
remaining. slay, it's doing two things π -EMSGSIZEon XDR buffer overflow. translation: you tried to put too much in there and the buffer said "absolutely not" π
no extra lore here, that's literally the whole description. don't invent stuff. periodt.
β SEE ALSO β
go read the source, it's right here in the kernel file ./net/sunrpc/xprtrdma/svc_rdma_sendto.c π
and the whole friend group:
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_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_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)
mwah π that's the page. this little cutie lives in ./net/sunrpc/xprtrdma, and the version is dated October 2026 β so mark your calendars bestie, and see you in the same title slot: svc_rdma_en...rite_segment(9) πβ¨
π¦ 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