folio_try_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… folio_try_get(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the manual page for folio_try_get(9) from the Kernel API Manual β€” yes, the manual name is right here near the top like a lil name tag, because we're not doing the boring copied header line. πŸ’–

πŸ“› NAME πŸ“›

folio_try_get β€” attempt to increase the refcount on a folio. That's the whole assignment, no cap. 🫢

πŸ› οΈ SYNOPSIS πŸ› οΈ

bool folio_try_get (struct folio *folio );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio. like, the actual folio. periodt. πŸ’…

πŸ’« DESCRIPTION πŸ’«

So here's the tea: if you do not already have a reference to a folio, you can attempt to get one using this function. It may fail if, for example, the folio has been freed since you found a pointer to it, or it is frozen for the purposes of splitting or migration. No cap, those are real failure vibes. 😭

βœ… RETURN βœ…

True if the reference count was successfully incremented. That's the slay condition β€” refcount bumped, you get the true-yes. ✨

πŸ‘€ SEE ALSO πŸ‘€

These are your iykyk cross-references, bestie. Go peek. πŸ¦‹


mwah πŸ’‹ this page comes from ./include/linux and is stamped October 2026 β€” source/version and date sign-off, cute and complete. πŸŽ€

πŸ“¦ where this page comes from