rpcrdma_prepare_send_sges(9)
π rpcrdma_prepare_send_sges(9) π
okay bestie, welcome to the Kernel API Manual β yes, we're in the kernel today, put your big-girl hat on, it's giving β¨serious businessβ¨ but make it cute.
πΈ NAME πΈ
rpcrdma_prepare_send_sges β the function that constructs SGEs for a Send WR. that's it, that's the whole vibe. it builds scatter/gather entries so your Send work request can actually go somewhere π
π¦ SYNOPSIS π¦
int rpcrdma_prepare_send_sges (struct rpcrdma_xprt *r_xprt , struct
rpcrdma_req *req , u32 hdrlen , struct xdr_buf *xdr , enum
rpcrdma_chunktype rtype );
like, five arguments, one int coming back. she's compact, she's iconic, she's lowkey doing a lot π
π ARGUMENTS π
r_xprtβ the controlling transport. think of it as the main character of this whole operation πreqβ the context of the RPC Call being marshalled. this is where the actual Call lives while it's getting its act together π«Άhdrlenβ size of the transport header, in bytes. yes bestie, bytes, we count in bytes here π’xdrβ thexdr_bufcontaining the RPC Call. the payload's home address fr fr πrtypeβ the chunk type being encoded. which flavor of chunk are we dealing with, iykyk π
β¨ DESCRIPTION β¨
Returns 0 on success; otherwise a negative errno is returned.
that's the whole deal, no cap. zero means slay π, negative errno means something went off and you gotta go read the errno like it's a text from your situationship π
ngl there is truly not a lot of prose here β the details are all up in ARGUMENTS. read those, they ate.
π SEE ALSO π
- Kernel file
./net/sunrpc/xprtrdma/rpc_rdma.cβ the source, the origin story, the blueprint π rpcrdma_set_max_header_sizes(9)rpcrdma_sendctx_unmap(9)rpcrdma_marshal_req(9)rpcrdma_reset_cwnd(9)rpcrdma_inline_fixup(9)rpcrdma_unpin_rqst(9)rpcrdma_complete_rqst(9)rpcrdma_reply_handler(9)
and that's the page, bestie π§ this one came to you from ./net/sunrpc/xprtrdma, dated October 2026 β a whole little time capsule of kernel lore. go forth and prepare those SGEs, you've got this ππ₯
π¦ 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