folio_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… folio_get(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” this is the page for folio_get(9), and it is lowkey tiny but highkey important. 🫢


🌸 NAME 🌸

folio_get β€” increment the reference count on a folio. That’s the whole assignment: bump that refcount, no cap. ✨


✨ SYNOPSIS ✨

void folio_get (struct folio *folio );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio. That’s it. That’s the argument. The whole argument. πŸŽ€

πŸ¦‹ CONTEXT πŸ¦‹

You can call this in any context, bestie β€” as long as you know that you have a refcount on the folio. Periodt. If you do not already have one, folio_try_get may be the right interface for you to use. πŸ‘‘

Heads up, gorgeous: the refcount knowledge is the vibe check here. Don’t skip it. πŸ’…

πŸ’œ SEE ALSO πŸ’œ

Kernel file: ./include/linux/mm.h

the whole see-also squad, in order, no skips:


xoxo, your kernel bestie πŸ§šπŸ’– β€” source/version: ./include/linux; date: October 2026. mwah! πŸ’‹

πŸ“¦ where this page comes from