folio_mark_accessed(9)
π folio_mark_accessed(9) π
okay so this is from the Kernel API Manual, and bestie, it's giving βtiny function, very specific job.β Let's get into it. π¦
β¨ NAME β¨
folio_mark_accessed β mark a folio as having seen activity. that's it, that's the job. π
π SYNOPSIS π
void folio_mark_accessed (struct folio *folio );
πΈ ARGUMENTS πΈ
folioβ the folio you're marking. the one and only argument, slay. π
π¦ DESCRIPTION π¦
This function will perform one of the following transitions β pick your lane, folio bestie:
inactive,unreferenced -> inactive,referencedinactive,referenced -> active,unreferencedactive,unreferenced -> active,referenced
When a newly allocated folio is not yet visible, so safe for non-atomic ops, __folio_set_referenced may be substituted for folio_mark_accessed. iykyk: freshly allocated, not-yet-visible folio, non-atomic-ops-safe situation. β¨
π₯ SEE ALSO π₯
Kernel file ./mm/folio.c:
folio_add_lru(9)folio_add_lru_vma(9)deactivate_file_folio(9)folio_mark_lazyfree(9)lru_cache_drain_for_folio(9)folios_put_refs(9)release_pages(9)folio_batch_remove_exceptionals(9)
mwah π that's the whole page, bestie. source/version is ./mm, dated October 2026, and the function is folio_mark_accessed(9). π«Άπ
π¦ 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