pcl_alloc_write(9)
π pcl_alloc_write β or, how to build a parsed chunk list from a Write list
okay so real quick, context: this is a page from the Kernel API Manual (yes, the kernel has lore, and yes, it's giving ancient scroll energy π«Ά). It's pcl_alloc_write(9) and it's lowkey a lil' builder function. Let's get into it, bestie.
β¨ NAME β¨
pcl_alloc_write β construct a parsed chunk list from a Write list. that's it, that's the whole job. no cap. π
πΈ SYNOPSIS πΈ
bool pcl_alloc_write (struct svc_rdma_recv_ctxt *rctxt , struct
svc_rdma_pcl *pcl , __be32 *p );
look at her. three args, returns a bool. main character energy fr fr. β¨
π¦ ARGUMENTS π¦
rctxtβ Ingress receive context. the ~scene of the crime~, i.e. the context this receive came in on. πpclβ Parsed chunk list to populate. this is the empty lil' list you're gonna fill up, bestie. she starts blank, she ends iconic. πpβ Start of an un-decoded Write list. note the un-decoded part β it's raw, it hasn't had its glow-up yet. π
π DESCRIPTION π
okay so before you even think about calling this, there are Assumptions (yes, capitalized, they're serious):
- The incoming Write list has already been sanity checked. like, somebody already did the vibe check on it, don't skip that step. β
cl_countis set to the number of chunks in the un-decoded list. it's gotta know how many chunks it's dealing with going in, periodt. π
Return values:
trueβ Parsed chunk list was successfully constructed. slay! πfalseβ Memory allocation failed. π not slay. that's the only failure mode listed here, so if you get afalse, blame the allocator.
ngl, the whole bit hinges on those two assumptions up top. if the list wasn't sanity checked orcl_countis wrong, that's a you problem, not apcl_alloc_writeproblem. π«Ά
π SEE ALSO π
- Kernel file
./net/sunrpc/xprtrdma/svc_rdma_pcl.cβ that's where she lives π pcl_free(9)pcl_alloc_call(9)pcl_alloc_read(9)pcl_check_read_chunk_positions(9)pcl_process_nonpayloads(9)
the whole friend group honestly. go read all of them, iykyk. π§
and that's the page, bestie! π this one shipped out of ./net/sunrpc/xprtrdma and it's dated October 2026 β so yeah, future girl summer. mwah, go allocate responsibly. πΈπ
π₯
π¦ 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