sg_miter_stop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« sg_miter_stop(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so this is sg_miter_stop from the kernel API manual (section 9, yes the dev one) and honestly? she's a little function with big main-character energy. let's get into it πŸ’…


✨ NAME ✨

sg_miter_stop β€” stop mapping iteration. that's it. that's the whole vibe. she stops the iteration. periodt 🫢


🌸 SYNOPSIS 🌸

void sg_miter_stop (struct sg_mapping_iter *miter );

yes bestie, it returns void β€” nothing comes back out, she just does the thing and leaves ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • miter β€” the sg mapping iter that's getting stopped. that's the one. the target. the moment 🎯

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” sg_miter_stop stops the mapping iterator miter.

important detail before you go wild: miter should have been started using sg_miter_start. like, you can't stop something that was never started, that's not how any of this works 😭

and here's the cute part β€” a stopped iteration can be resumed by calling sg_miter_next on it. slay! πŸ’– this is genuinely useful when resources (kmap) need to be released during iteration. so you stop, you free your stuff, you come back, you keep iterating. iconic behaviour honestly πŸ‘‘


🌈 CONTEXT 🌈

"Don't care otherwise." β€” literally the most relaxed line in the whole kernel, she said no thoughts, head empty πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

kernel file ./lib/scatterlist.c plus the whole scatterlist friend group, all of them, no one left out (we don't do exclusion here 🫢):


reminder bestie: miter has to be one that was started with sg_miter_start β€” and if you stopped it and wanna keep going, sg_miter_next is your girl πŸ’…

⭐ that's the whole page!! brought to you by ./lib, dated October 2026, and filed under sg_miter_stop(9) β€” mwah, go stop some iterators responsibly πŸ’œπŸ§š

πŸ“¦ where this page comes from