workingset_test_recent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 from shadow should 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