pcl_alloc_read(9)
πΈ pcl_alloc_read(9) πΈ
okay so this little icon is from the Kernel API Manual, and it's here to explain how to construct a parsed chunk list for normal Read chunks. Bestie, it's giving "small function, important job" energy, and we're gonna get into every single detail. π
β¨ NAME β¨
pcl_alloc_read β construct a parsed chunk list for normal Read chunks. Slay. π
π¦ SYNOPSIS π¦
bool pcl_alloc_read (struct svc_rdma_recv_ctxt *rctxt , __be32 *p );
π ARGUMENTS π
rctxtβ the ingress receive context, aka the place where the incoming receive vibe lives. β¨pβ the start of an un-decoded Read list. It's literally the beginning of the list before anybody has decoded it. π«Ά
π DESCRIPTION π
okay so before we go anywhere, here are the assumptions β read the room, bestie:
- The incoming Read list has already been sanity checked. β
cl_countis already set to the number of segments in the un-decoded list. π’- The list might not be in order by position. So do not assume it's sorted, fr fr. π
Return values, no cap:
true: the parsed chunk list was successfully constructed, andcl_countis updated to be the number of chunks (ie. unique position values) in the Read list. Iconic. πfalse: memory allocation failed. π
π§ SEE ALSO π§
The kernel file ./net/sunrpc/xprtrdma/svc_rdma_pcl.c is the main character here, and these besties are also in the group chat:
pcl_free(9)pcl_alloc_call(9)pcl_alloc_write(9)pcl_check_read_chunk_positions(9)pcl_process_nonpayloads(9)
Signed off from ./net/sunrpc/xprtrdma, dated October 2026 β 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