folio_use_access_time(9)
π folio_use_access_time β from the Kernel API Manual, section 9, bestie
okay so this one is a lil kernel function from the 9 section of the manual (that's the kernel API one, iykyk) and honestly? it's giving "just a quick check, no big deal" β¨
πΈ NAME πΈ
folio_use_access_time β check if a folio reuses cpupid for page access time π«Ά
like literally, it's a yes-or-no vibe check on one single folio.
π SYNOPSIS π
bool folio_use_access_time (struct folio *folio );
one argument, one boolean answer, that's the whole main character moment π
π¦ ARGUMENTS π¦
folioβ the folio to check. that's it. that's the argument. the folio. the one getting checked. π
β¨ DESCRIPTION β¨
okay so here's the tea β β a folio's _last_cpupid field gets repurposed by memory tiering. like, it's got a whole second job now, no cap.
and in memory tiering mode specifically, the cpupid of a slow memory folio β and bestie, note that it's not toptier memory, we're talking slow memory only β is used to record page access time. π
so if you're wondering "hmm is this folio's _last_cpupid doing access-time duty or not", that's exactly what this function is here to tell you. slay.
π₯ RETURN π₯
the folio's _last_cpupid is used to record page access time β
(so like, the return value tells you whether that's the case β fr fr)
π SEE ALSO π
- Kernel file
./mm/memory-tiers.c next_demotion_node(9)register_mt_adistance_algorithm(9)unregister_mt_adistance_algorithm(9)mt_calc_adistance(9)
go read those too, they're literally the rest of the memory tiering friend group π«Άπ
and that's the whole page, bestie π β this one comes courtesy of ./mm, dated October 2026, and it's folio_use_access_time(9) all day. periodt. π
β¨
π¦ 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