sg_mark_end(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ sg_mark_end(9) β€” like, the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're reading the Kernel API Manual, section 9, and the page you've landed on is all about sg_mark_end. yes it's a scatterlist thing. yes you're gonna get it. let's go πŸ’…


✨ NAME ✨

sg_mark_end β€” the little function that says "this is the end, bestie, no more entries after this one" πŸ›‘


🌸 SYNOPSIS 🌸

void sg_mark_end (struct scatterlist *sg );

that's it. that's the whole signature. one function, one pointer, zero drama 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sg β€” the SG entry (a Scatterlist, literally) you're about to flag as the last one. this is the girl. the main character of the operation πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So what does it actually do? It marks the sg entry you passed in as the termination point for the sg table. Basically you're putting a little "the end ✌️" sticker on it so everyone knows the list stops here.

And the receipts? If you hit this entry with a call to sg_next, it'll come back with NULL. no more entries, no cap. that's the whole vibe check πŸ”₯

ngl it's a tiny function, but it's iconic β€” without it your scatterlist would just keep going forever like a group chat with no one leaving 😭


⭐ SEE ALSO ⭐


and that's the page!! 🌈 this lil gem lives in ./tools/virtio/linux, and the version we're looking at is dated October 2026 β€” so go forth, mark your ends, and slay your scatterlists, bestie πŸ’œπŸ§šπŸ“

πŸ“¦ where this page comes from