folio_unlock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ folio_unlock(9) πŸ¦‹

okay so bestie, welcome to folio_unlock(9) from the Kernel API Manual β€” it's giving β€œrelease the folio” energy, and honestly? iconic. πŸ’…


🌸 NAME 🌸

folio_unlock β€” unlocks a locked folio. no cap, that’s the whole gig. ✨


πŸŽ€ SYNOPSIS πŸŽ€

void folio_unlock (struct folio *folio );

πŸ’– ARGUMENTS πŸ’–

  • folio β€” the folio. literally the folio, bestie. that’s the one. 🫢

🌈 DESCRIPTION 🌈

This unlocks the folio and wakes up any thread that’s sleeping on the page lock. so it’s not just β€œunlock and dip” β€” it’s also the little wake-up call for whoever was waiting. πŸ˜­πŸ’–


⭐ CONTEXT ⭐

Context check, bestie:

  • May be called from interrupt context or process context. βœ…
  • May not be called from NMI context. 🚫
πŸ’€ NMI context is a no-go, periodt. don’t do it.

πŸ”— SEE ALSO πŸ”—

no because the see-also section is literally a group chat. we’ve got Kernel file ./mm/filemap.c plus this whole friend group:


mwah πŸ’‹ β€” source/version ./mm, date October 2026. bye bestie, go unlock that folio! πŸ’œπŸŽ€

πŸ“¦ where this page comes from