workingset_test_recent(9)
π workingset_test_recent(9) β a Kernel API Manual moment
okay so bestie, welcome to workingset_test_recent from the kernel API manual (manual name workingset_test_recent(9), in case the vibe check needed a label) π β this one's a lil function that checks whether a shadow entry belongs to a folio that got evicted recently. and like, as a lil bonus? it also fills in @workingset with the value it unpacked from shadow. two-for-one. iconic. β¨
πΈ SYNOPSIS πΈ
bool workingset_test_recent (void *shadow , bool file , bool *workingset
, bool flush );
that's the whole signature, no cap. she takes four things and hands you back a bool. π
π¦ ARGUMENTS π¦
shadowβ the shadow entry that's getting tested. that's her whole job, she's the one on trial here πfileβ tells you whether the corresponding folio is from the file lru. yes/no, file-or-not, that's it ποΈworkingsetβ this is the output spot π«Ά where the workingset value unpacked fromshadowshould be stored. she fills it in for you, bestie.flushβ whether to flush cgroup rstat. that's the whole deal, no extra lore β
π RETURN π
trueβ if the shadow is for a recently evicted folio ππ₯falseβ otherwise.
like, that's the entire return story. true or false, and honestly? she ate. π
π§ SEE ALSO π§
Kernel file ./mm/workingset.c β go read it, iykyk π β plus the whole friend group:
fr fr, they all hang out together in the same corner of ./mm. π
lowkey a reminder: this page lives in ./mm and it's dated October 2026, so like β that's the version you're reading, bestie. don't come for me if you're on a different one π
and that's the page!! mwah π β signed off from ./mm, October 2026 edition, with love and a lil sparkle π
π¦ 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