sg_miter_skip(9)
π sg_miter_skip(9) π
okay so bestie, you're reading the sg_miter_skip(9) page from the Kernel API Manual and honestly? it's a little cutie. short, sweet, does one thing. let's get into it π
β¨ NAME β¨
sg_miter_skip β reposition that mapping iterator, periodt
β¨ SYNOPSIS β¨
bool sg_miter_skip (struct sg_mapping_iter *miter , off_t offset );
β¨ ARGUMENTS β¨
miterβ the sg mapping iter that's getting skipped. yeah. that one. π«Άoffsetβ number of bytes to plus the current location. yes it literally says "plus" β it's added on top of wherever you already are π
β¨ DESCRIPTION β¨
So what it does is: it sets the offset of miter to its current location plus offset bytes. that's the whole vibe β¨
and like, heads up β if the mapping iterator miter has been proceeded by sg_miter_next, this stops miter. no cap, that's important. π
β¨ CONTEXT β¨
Don't care. literally. that's what it says. main character energy of "not my problem" π
β¨ RETURN β¨
trueβ ifmitercontains the valid mapping πfalseβ if end of sg list is reached πΈ
β¨ SEE ALSO β¨
Kernel file ./lib/scatterlist.c, plus the whole friend group:
sg_nents(9)sg_nents_for_len(9)sg_nents_for_dma(9)sg_last(9)sg_init_table(9)sg_init_one(9)__sg_free_table(9)sg_free_append_table(9)sg_free_table(9)__sg_alloc_table(9)sg_alloc_table(9)sg_alloc_append_table_from_pages(9)sg_alloc_table_from_pages_segment(9)sgl_alloc_order(9)sgl_alloc(9)sgl_free_n_order(9)sgl_free_order(9)sgl_free(9)sg_miter_start(9)sg_miter_next(9)sg_miter_stop(9)sg_copy_buffer(9)sg_copy_from_buffer(9)sg_copy_to_buffer(9)sg_pcopy_from_buffer(9)sg_pcopy_to_buffer(9)sg_zero_buffer(9)extract_iter_to_sg(9)
that's the whole page bestie, go skip some iterators responsibly π¦
mwah π β this lil page lives in ./lib, dated October 2026, and it's the sg_miter_skip(9) entry, signing off πβ¨
π¦ 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