pcl_check_re...nk_positions(9)
π NAME π
okay bestie, this is the Kernel API Manual page for pcl_check_read_chunk_positions β aka the function that validates Read chunk positions. Itβs literally the vibe check for chunk positions, and weβre obsessed. π
β¨
β¨ SYNOPSIS β¨
bool pcl_check_read_chunk_positions (struct svc_rdma_recv_ctxt *rctxt ,
unsigned int inline_len );
π«Ά ARGUMENTS π«Ά
rctxtβ Ingress receive context with populated chunk lists. Thatβs the ingress receive context, bestie, with the chunk lists already populated. π«Άinline_lenβ Length of the inline RPC body after the transport header. No cap.
π DESCRIPTION π
Read chunk positions are offsets in the unreduced XDR stream (RFC 8166 Section 3.4.4), so each position includes the cumulative length of preceding Read chunks. This function subtracts those lengths to recover the inline-body offset before comparing against inline_len or the Call chunk length. π§
It rejects frames where:
- a Read chunkβs inline-body offset exceeds the bound,
- adjacent Read chunks overlap, or
- any single chunk length exceeds the page budget.
Return values:
trueβ Read chunk positions and lengths are validfalseβ Malformed chunk list detected
π₯ SEE ALSO π₯
Kernel file ./net/sunrpc/xprtrdma/svc_rdma_pcl.c is the main-character file, and these are the friends in the group chat:
mwah π β signed off from ./net/sunrpc/xprtrdma, October 2026. periodt. π¦
π¦ 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