unpin_user_folio(9)
β¨ unpin_user_folio(9) β¨
okay bestie, welcome to the Kernel API Manual π
this is the page for unpin_user_folio(9) and honestly it's giving short-and-sweet main character energy π
πΈ NAME πΈ
unpin_user_folio β release pages of a folio π«Ά
π¦ SYNOPSIS π¦
void unpin_user_folio (struct folio *folio , unsigned long npages );
like look at that signature, no notes, iconic β¨
π ARGUMENTS π
folioβ pointer to the folio that's getting released, so basically the address of the thing we're unpinning π«npagesβ the number of pages of that same folio, i.e. how many of its pages we're letting go π₯
π DESCRIPTION π
Release npages of the folio π
that's it, that's the whole vibe. you hand it a folio and you hand it a number, and it releases that many pages of it. periodt π
π SEE ALSO π
Kernel file ./mm/gup.c β go read it, iykyk π β plus literally all of these besties:
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_folios(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)
bestie reminder from the fine print at the bottom: this one lives in ./mm and it's dated October 2026 β so like, that's the source and the date, go 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