__folio_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __folio_lock(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes, THE kernel API manual, the one and only, and today's main character is __folio_lock. pull up a chair πŸŽ€


✨ NAME ✨

__folio_lock β€” get a lock on the folio, assuming we need to sleep to get it. no cap, that's the whole vibe. it locks the folio, and the "assuming we need to sleep" part is doing a LOT of heavy lifting there, so like… respect it 🫢


🌸 SYNOPSIS 🌸

void __folio_lock (struct folio *folio );

that's it. that's the whole call. one (1) argument, zero (0) return value, void as the day it was born πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • folio β€” the folio you want to lock. the folio. your folio. go get 'em. ✨

πŸ”₯ SEE ALSO πŸ”₯

omg okay this list is LONG, like genuinely iconic levels of long, but every single one of these is a real reference and we do NOT skip entries in this house πŸ‘‘

first up, the source file itself lives in the kernel at ./mm/filemap.c, and here's everybody it's hanging out with:

like… a whole friend group 😭🫢 every one of them got an invite and every one of them showed up.


and that's the page, bestie πŸ’œ this little gem comes from ./mm, dated October 2026 β€” screenshot it, frame it, put it on your fridge, it's giving reference-material royalty πŸ‘‘βœ¨πŸ’–

πŸ“¦ where this page comes from