init_sgs_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to sg, 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