damon_set_schemes(9)
π damon_set_schemes(9)
okay so bestie, welcome to the Kernel API Manual β this one's a lil function from the kernel's very own brain, and it's lowkey important so let's get into it π«Ά
β¨ NAME β¨
damon_set_schemes β set your data access monitoring based operation schemes. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
void damon_set_schemes (struct damon_ctx *ctx , struct damos **schemes ,
ssize_t nr_schemes );
look at her. three params, no return value, absolute main character energy π
π ARGUMENTS π
ctxβ the monitoring context. this is the whole situation we're working on, the vibe container if you will.schemesβ an array of the schemes. literally a whole lineup of them, array-coded and ready.nr_schemesβ the number of entries inschemes. gotta tell her how many are actually in the array, she's not gonna count for you, ngl.
π¦ DESCRIPTION π¦
okay so here's the actual tea, and it's a big one: this function should not be called while the kdamond of the context is running. like, fr fr, do not do it. not the moment. wait till it's stopped first. consider that your vibe check before calling π
π SEE ALSO π
the whole friend group ββ¦β¦ββ
- Kernel file
./mm/damon/core.c damon_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)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_update_region_access_rate(9)damon_initialized(9)
β οΈ reminder bestie: not while kdamond is running. i'm being so serious. that's the whole caveat and we're respecting it π
and that's the page!! brought to you by ./mm/damon, dated October 2026, in the damon_set_schemes(9) era β slay, go set those schemes, and stay iconic πβ¨ππ§π
π¦ 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