unpin_folios(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the folios array. 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:

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