svc_rdma_pre..._reply_chunk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ svc_rdma_prepare_reply_chunk(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this one is a whole little function in the sunrpc/xprtrdma world and honestly it's giving "quietly doing the most." let's get into it 🫢


🌸 NAME 🌸

svc_rdma_prepare_reply_chunk β€” literally builds the WR chain for writing the Reply chunk πŸ”₯ that's it, that's the job, and she does it well


πŸŽ€ SYNOPSIS πŸŽ€

int svc_rdma_prepare_reply_chunk (struct svcxprt_rdma *rdma , const
struct svc_rdma_pcl *write_pcl , const struct svc_rdma_pcl *reply_pcl ,
struct svc_rdma_send_ctxt *sctxt , const struct xdr_buf *xdr );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • rdma β€” the controlling RDMA transport πŸ’… she's the main character, everyone reports to her
  • write_pcl β€” the Write chunk list, hand-delivered by the client πŸ“‹
  • reply_pcl β€” the Reply chunk, also from the client, also iconic πŸ‘‘
  • sctxt β€” the Send WR resources ✨ all the stuff you need to actually push a send out into the world
  • xdr β€” the xdr_buf holding an RPC Reply πŸ“ the actual payload vibes

🌈 DESCRIPTION 🌈

so what does she return? glad you asked πŸ’–

She hands back a non-negative number β€” that's the count of bytes the chunk consumed. slay. but if things go sideways (and they might, ngl), here's the whole mood ring of negative returns:

  • -E2BIG β€” the payload was larger than the Reply chunk 😭 too much stuff, not enough room
  • -EINVAL β€” the client provided too many segments πŸ™ˆ like, ma'am, that's too many
  • -ENOMEM β€” the rdma_rw context pool was exhausted πŸ’€ out of contexts, out of patience
  • -ENOTCONN β€” posting failed because the connection is lost 🫠 it's gone, bestie
  • -EIO β€” rdma_rw initialization failed (DMA mapping, etc.) ⚑ the low-level stuff said no
no cap, every one of those error codes matters β€” check which one you got before you start guessing πŸ’œ

⭐ SEE ALSO ⭐

the kernel file in question, for the girls who like to read the source:

./net/sunrpc/xprtrdma/svc_rdma_rw.c

and the whole friend group πŸ’…:


and that's the whole page, bestie ✨ this cutie lives in ./net/sunrpc/xprtrdma and she was dated October 2026 β€” go off, calendar queen πŸ‘‘πŸ¦‹πŸ’–

πŸ“¦ where this page comes from