xdr_count_write_chunks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, this is xdr_count_write_chunks(9) β€” yes, section 9, from the Kernel API Manual β€” and it does exactly one iconic job: Count number of Write chunks in Write list. That's the whole slay. πŸ’…

✨ SYNOPSIS ✨

bool xdr_count_write_chunks (struct svc_rdma_recv_ctxt *rctxt , __be32
       *p );

🫢 ARGUMENTS 🫢

  • rctxt β€” Received header and decoding state. She's carrying the context, okay? πŸ’–
  • p β€” start of an un-decoded Write list. Literally the starting point of a Write list that hasn't been decoded yet. πŸ¦‹

πŸ’… DESCRIPTION πŸ’…

Real talk: before allocating anything, ensure the ingress Write list is safe to use. Safety check first, allocation later, no cap. ✨

Return values, bestie:

  • true: Write list is valid. rctxt's xdr_stream is updated to point to the first byte past the Write list, and the number of Write chunks is in rc_write_pcl.cl_count. Slay. πŸ‘‘
  • false: Write list is corrupt. rctxt's xdr_stream is left in an indeterminate state. Not cute, very much a "handle with care" moment. 😭
🚨 That false case is the vibe check failing: the Write list is corrupt, and the xdr_stream is left in an indeterminate state. Keep that in mind, fr fr.

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, bestie. source/version: ./net/sunrpc/xprtrdma; date: October 2026; page: xdr_count_write_chunks(9). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from