pcl_for_each_segment(9)
π pcl_for_each_segment(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a macro walker and she's literally so simple and so iconic for it π
πΈ NAME πΈ
pcl_for_each_segment β iterate over segments in a parsed chunk π¦
like, it's giving "loop through every segment in there, bestie" and honestly? ate. π
β¨ SYNOPSIS β¨
pcl_for_each_segment (pos , chunk );
that's it. that's the whole vibe. no cap. π₯
π§ ARGUMENTS π§
posβ the loop cursor π like, pos, as in your little pointer that's doing the walking, yk? she's the main character of this loop fr fr.chunkβ a parsed chunk π the one and only thing you're iterating over. she's parsed, she's a chunk, she's ready.
π SEE ALSO π
bestie, if you liked this one, the whole friend group is in the kernel file ./include/linux/sunrpc/svc_rdma_pcl.h π go say hi to:
pcl_init(9)pcl_is_empty(9)pcl_first_chunk(9)pcl_next_chunk(9)pcl_for_each_chunk(9)pcl_chunk_end_offset(9)
the way that's a whole squad ππ«Ά
lowkey reminder: those are the cross-references exactly as the page gives them β don't come for me, I just relay the facts π
and that's a wrap, bestie β¨ this page lives in ./include/linux/sunrpc and it's dated October 2026 β so go forth, iterate those segments, and slay πππ¦π
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