xdr_count_write_chunks(9)
π 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'sxdr_streamis updated to point to the first byte past the Write list, and the number of Write chunks is inrc_write_pcl.cl_count. Slay. πfalse: Write list is corrupt.rctxt'sxdr_streamis left in an indeterminate state. Not cute, very much a "handle with care" moment. π
π¨ Thatfalsecase is the vibe check failing: the Write list is corrupt, and thexdr_streamis left in an indeterminate state. Keep that in mind, fr fr.
π₯ SEE ALSO π₯
- Kernel file:
./net/sunrpc/xprtrdma/svc_rdma_recvfrom.c svc_rdma_recv_ctxts_destroy(9)svc_rdma_recv_ctxt_get(9)svc_rdma_recv_ctxt_put(9)svc_rdma_release_ctxt(9)svc_rdma_post_recvs(9)svc_rdma_wc_receive(9)svc_rdma_flush_recv_queues(9)xdr_count_read_segments(9)svc_rdma_xdr_decode_req(9)svc_rdma_recvfrom(9)
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
- 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