init_sgs_pages(9)
π init_sgs_pages(9)
okay bestie, welcome to the Kernel API Manual corner of the group chat π this one is all about setting up a scatterlist on an array of page pointers, and it's lowkey iconic.
β¨ NAME β¨
init_sgs_pages β set up scatterlist on an array of page pointers π«Ά
πΈ SYNOPSIS πΈ
void init_sgs_pages (struct scatterlist **sg , struct page **pages , int
dpos , int dlen , u8 *pad );
π ARGUMENTS π
sgβ the scatterlist to populate. yes bestie, this is the one you're filling in πpagesβ pointer to the page array. the source material, fr fr π¦dposβ position in the array to start, in bytes βdlenβ len to add tosg, in bytes πpadβ pointer to the pad destination, if there is one π
π« DESCRIPTION π«
so here's the vibe: you populate the scatterlist from the page array, starting at an arbitrary byte in the array and running for a specified length. that's the whole assignment, no cap π
the starting point is arbitrary-byte energy, and the run is exactly the length you specified. slay.
π₯ SEE ALSO π₯
- Kernel file
./net/ceph/messenger_v2.cπ
mwah π β this cutie comes from the ./net/ceph source tree, footer date October 2026 π
π¦ 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