unpin_folios(9)
π unpin_folios β a Kernel API Manual moment (section 9, bestie)
okay so real talk, this is a page straight outta the Kernel API Manual, section 9, and it's about letting go of folios you grabbed with gup. yes, the letting go part. the emotional climax of every pin. π«Ά
β¨ NAME β¨
unpin_folios β release an array of gup-pinned folios.
like, an entire array of them. not one, an array. we're doing a whole friend-group goodbye here. π
πΈ SYNOPSIS πΈ
void unpin_folios (struct folio **folios , unsigned long nfolios );
that's it. that's the whole signature. she's simple, she's effective, she returns void because she's not gonna sit here and report back to you. π
π ARGUMENTS π
foliosβ the array of folios to be marked dirty and released. yes bestie, marked dirty β they're going out with a little chaos on them, as they should. π₯nfoliosβ the number of folios in thefoliosarray. like the headcount for the group photo. everybody gets counted, nobody gets left behind. π
π DESCRIPTION π
For each folio in the folios array, release the folio using gup_put_folio.
that's the whole bit, no cap. you hand over the array, she walks it, and every single folio gets released via gup_put_folio. one by one. respectful. orderly. iconic. β¨
Please see the unpin_folio documentation for details. β the singular one! the original! go read that one if you want the full lore, iykyk. π
π¦ SEE ALSO π¦
okay this list is long and honestly it ate. everything lives in the kernel file ./mm/gup.c and its friends:
try_grab_folio(9)unpin_user_page(9)unpin_folio(9)folio_add_pin(9)unpin_user_pages_dirty_lock(9)unpin_user_page_range_dirty_lock(9)unpin_user_pages(9)unpin_user_folio(9)try_grab_folio_fast(9)follow_page_mask(9)__get_user_pages(9)fixup_user_fault(9)populate_vma_page_range(9)fault_in_writeable(9)fault_in_subpage_writeable(9)fault_in_readable(9)get_dump_page(9)get_user_pages_remote(9)get_user_pages(9)get_user_pages_fast_only(9)get_user_pages_fast(9)pin_user_pages_fast(9)pin_user_pages_remote(9)pin_user_pages(9)memfd_pin_folios(9)folio_add_pins(9)
literally the entire extended universe. go read them all, i believe in you. π
mwah π stay pinned, stay hydrated, and remember: every pin needs its unpin. that's the circle of life, bestie.
sign-off szn π: this lil page comes from the source ./mm, dated October 2026, and yes she's still unpin_folios(9) β same girl, same manual, same section 9 energy. byeeee πβ¨
π¦ 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