sgl_free(9)
π sgl_free(9) β like, the Kernel API Manual girlie explains it π
okay so bestie, welcome to <pink>sgl_free</pink> from the Kernel API Manual β this is the page for sgl_free(9) and it is exactly what it says on the tin, no cap.
β¨ NAME β¨
<hotpink>sgl_free</hotpink> β frees a scatterlist and all its pages. both. together. the whole friend group goes home. π«Ά
πΈ SYNOPSIS πΈ
void sgl_free (struct scatterlist *sgl );
that's it. that's the whole signature. void return, one pointer in. simple. iconic. π
π ARGUMENTS π
sglβ the scatterlist you're yeeting, and it has one or more elements in it. one is fine, more is fine, just likeβ¦ don't hand it an empty one, m'kay? β¨
π¦ SEE ALSO π¦
okay so this is the part where the manpage shows you the entire extended universe, and honestly it's giving main character energy with how many siblings there are. all of these live over in the kernel file ./lib/scatterlist.c:
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)sg_miter_start(9)sg_miter_skip(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)
like, look at them all. a whole little scatterlist family. π§ββοΈπ
lowkey a vibe check before you call this: you're freeing the scatterlist and its pages, so if anybody else is still holding onto those pages, that's a you problem and it will not be cute. π
β and that's the page, bestie! this one came from the <lavender>./lib</lavender> corner of the source tree, dated October 2026, and it's filed under sgl_free(9) β go forth and free responsibly ππβ¨
π¦ 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