damon_select_ops(9)
π damon_select_ops β the kernel API manual, bestie edition π
okay so welcome to damon_select_ops(9), a page from the Kernel API Manual, and honestly? it's a short one but it's iconic. it's literally the little matchmaker function that pairs your DAMON context with the monitoring operations of its dreams π
β¨ NAME β¨
damon_select_ops β select a monitoring operations to use with the context.
like, the whole point. it picks which ops set your context is gonna run with. no cap π«Ά
πΈ SYNOPSIS πΈ
int damon_select_ops (struct damon_ctx *ctx , enum damon_ops_id id );
that's the whole signature, keep it verbatim bestie, do not touch π
π¦ ARGUMENTS π¦
ctxβ the monitoring context that's gonna be using these operations. this is the main character we're setting up β¨idβ the id of the registered monitoring operations you wanna select. it's giving "pick me" energy but like, in a legit lookup way π
π DESCRIPTION π
so what actually happens? this function finds the registered monitoring operations set that matches id, and then makes ctx use it. that's it. that's the whole vibe check β find the ops, hand them to the context, slay π₯
β RETURN β
0on success π- a negative error code otherwise π (something went wrong, no cap)
π SEE ALSO π
okay this is the part where the page just lists literally everyone in the friend group, and we're keeping every single one fr fr:
- Kernel file
./mm/damon/core.c damon_is_registered_ops(9)damon_register_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_update_region_access_rate(9)damon_initialized(9)
all of them. every one. go read them, they're literally so good ππ
π§ tiny reminder: the source path listed on this page is ./mm/damon, and honestly that's where all the lore lives π
and that's the page!! sign-off time: this one came out of ./mm/damon, dated October 2026 β so yeah, freshly stamped, still warm ππ bye bestie, go select some ops π¦β¨
π¦ 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