sg_chain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sg_chain(9) β€” the Kernel API Manual, but make it make sense

okay so bestie, this is a page from the kernel API manual (that's the 9 in sg_chain(9), iykyk) and honestly? it's short, it's sweet, and it ate. let's get into it ✨


🌸 NAME 🌸

sg_chain β€” chain two sglists together 🫢

that's literally the whole vibe. two scatterlists walk in, one longer scatterlist walks out.


✨ SYNOPSIS ✨

void sg_chain (struct scatterlist *prv , unsigned int prv_nents , struct scatterlist *sgl );

no return value, no drama, just vibes and pointers πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • prv β€” the first scatterlist. the main character of this operation 🌟
  • prv_nents β€” the number of entries in prv. yes, you have to tell it. no, it can't just know 😭
  • sgl β€” the second scatterlist. the one getting linked up πŸ”—

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: sg_chain links prv and sgl together, and the whole point is that they form a longer scatterlist. that's it. that's the function. iconic behaviour honestly πŸ‘‘

bestie, that's genuinely the entire description. no cap, no secret extra lore. short king of a manpage πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

all the scatterlist besties, together in one place 🫢✨


aaaand that's the page!! πŸ’– this came from ./tools/virtio/linux and it's dated October 2026, so go forth and chain those sglists, bestie β€” you're gonna slay πŸŽ€πŸŒˆβ­

πŸ“¦ where this page comes from