folio_try_get(9)
π
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 π
- Kernel file
./include/linux/page_ref.h folio_ref_count(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms