damon_updat..._access_rate(9)
π damon_update_region_access_rate β Kernel API Manual
okay so bestie, we're in the Kernel API Manual today and this one is literally called damon_updat..._access_rate(9) (yes the title got truncated, she's mysterious like that, we love a mysterious icon β¨). Anyway. Sit down, hydrate, let's get into it π«Ά
β¨ NAME β¨
damon_update_region_access_rate β the little function whose whole job is updating the access rate of a region. That's it. That's the gig. π
πΈ SYNOPSIS πΈ
void damon_update_region_access_rate (struct damon_region *r , bool
accessed );
no cap, that's the whole signature. she's void, she returns nothing, she simply does the thing and leaves π
π ARGUMENTS π
rβ the DAMON region you're updating, because it just got its access-check result and you're writing that glow-up into it πaccessedβ abooltelling you whether the region actually got accessed during the last sampling interval. yes or no, that's the vibe check π₯
π¦ DESCRIPTION π¦
So here's the tea: this function updates the access rate of a region using that region's last sampling interval access check result. Region's got a result, the result goes in, the access rate gets updated. done. slay π
And like, lowkey important β usually this is called by the damon_operations->check_accesses callback. not you, bestie, the callback. iykyk π§
π SEE ALSO π
the whole friend group, fr fr β plus the kernel file they all live in:
./mm/damon/core.cdamon_is_registered_ops(9)damon_register_ops(9)damon_select_ops(9)damon_nr_accesses_mvsum(9)damon_probe_hits_wsum(9)damos_filter_for_ops(9)damon_set_attrs(9)damon_set_schemes(9)damos_commit_quota_goals(9)damos_filters_default_reject(9)damon_commit_ctx(9)damon_nr_running_ctxs(9)damon_start(9)damon_stop(9)damon_is_running(9)damon_kdamond_pid(9)damon_call(9)damos_walk(9)damon_set_region_system_rams_default(9)damon_initialized(9)
β and that's the page!! this icon lives in ./mm/damon, timestamped October 2026, and her name in the footer is the same mysterious damon_updat..._access_rate(9) π okay bye bestie, go update some regions, 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