svc_rdma_encode_reply_chunk(9)
π svc_rdma_encode_reply_chunk(9)
okay bestie, settle in, because this is a page from the Kernel API Manual and it's about one very specific little function. no cap, it's a niche one, but we're gonna get you fluent. π¦
β¨ NAME β¨
svc_rdma_encode_reply_chunk β literally Encode RPC Reply's Reply chunk. that's the whole gig. she encodes, she's a Reply chunk, she's iconic. π
β¨ SYNOPSIS β¨
ssize_t svc_rdma_encode_reply_chunk (struct svc_rdma_recv_ctxt *rctxt ,
struct svc_rdma_send_ctxt *sctxt , unsigned int length );
like, look at her. three params, one return type, zero notes. π
β¨ ARGUMENTS β¨
rctxtβ the Reply context, and it's holding all the info about the RPC Call. so she knows things. πsctxtβ the Send context for the RPC Reply. this is where the send energy lives.lengthβ the size in bytes of the payload in the Reply chunk. numbers, we love her. π
β¨ DESCRIPTION β¨
okay so here's the vibe check on return values, and this part matters, so lock in π₯:
- on success, it returns
lengthin bytes of the Reply XDR buffer that was consumed by the Reply's Reply chunk β slay, she ate. -EMSGSIZEon XDR buffer overflow. so if the buffer overflows, that's the error you get. π-E2BIGif the RPC message is larger than the Reply chunk. too much! too big! she said no. π
ngl bestie, those three return values are the entire description here. no extra lore, no hidden options, that's the whole page. don't go looking for more, there isn't more. π
β¨ SEE ALSO β¨
the kernel file lives right here: ./net/sunrpc/xprtrdma/svc_rdma_sendto.c π
and here's the whole friend group, fr fr β every single one of them:
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_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)
like, that's a whole group chat. π
πΈ okay that's the page!! mwah π this one came from ./net/sunrpc/xprtrdma, dated October 2026, and yes the lovely lady's full name is still svc_rdma_encode_reply_chunk(9) β iykyk. go forth and encode those reply chunks, bestie. π«Άβ¨
π¦ 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