sg_chain(9)
π 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 inprv. 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 π₯
- the kernel file
./tools/virtio/linux/scatterlist.hβ go read it, it's giving source material π sg_assign_page(9)sg_set_page(9)sg_mark_end(9)sg_unmark_end(9)
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
- 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