damon_start(9)
π damon_start(9) β a Kernel API Manual moment
okay bestie, welcome to damon_start(9), straight out of the Kernel API Manual β¨ this is the little function that gets your monitoring threads up and running, and honestly? iconic behavior.
πΈ NAME πΈ
damon_start β Starts the monitorings for a given group of contexts. periodt. that's the whole job. π
β¨ SYNOPSIS β¨
int damon_start (struct damon_ctx **ctxs , int nr_ctxs , bool exclusive );
like look at her. three arguments, one int return, no cap. π¦
π«Ά ARGUMENTS π«Ά
ctxsβ an array of the pointers for contexts to start monitoring. it's the guest list, and everybody on it is getting monitored πnr_ctxsβ size ofctxs. literally just how many besties are on the list π₯exclusiveβ exclusiveness of this contexts group. yes it's a real word. yes it matters. keep reading π
π DESCRIPTION π
okay so here's the vibe: this function starts a group of monitoring threads for a group of monitoring contexts. one thread per each context is created and run in parallel. the way that's so main character energy π
but bestie, listen β the caller should handle synchronization between the threads by itself. that's on you, not her. she's not your babysitter π
and then there's the exclusive situation: if exclusive is true and a group of threads that created by other β it returns -EBUSY. so like, if somebody else already claimed exclusivity, you're not getting in. the door's locked, the vibe check failed, go home π
β RETURN β
0on success π- negative error code otherwise π
π¦ SEE ALSO π¦
Kernel file ./mm/damon/core.c and her entire friend group:
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)damon_set_schemes(9)damos_commit_quota_goals(9)damos_filters_default_reject(9)damon_commit_ctx(9)damon_nr_running_ctxs(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)
mwah π that's the page! brought to you by the ./mm/damon girlies, dated October 2026, in all her damon_start(9) glory. go start some monitorings, bestie β you got this π«Άβ¨
π¦ 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