damon_stop(9)
π damon_stop β Kernel API Manual (section 9, bestie)
okay so you're in the damon_stop(9) page, welcome, this is the Kernel API Manual and we're talking about shutting down monitoring for a whole little squad of contexts. honestly iconic behaviour. let's get into it π
β¨ NAME β¨
damon_stop β stops the monitorings for a given group of contexts. that's it, that's the whole vibe. it stops them. all of them in the group. periodt π
πΈ SYNOPSIS πΈ
void damon_stop (struct damon_ctx **ctxs , int nr_ctxs );
literally just hand it your array of context pointers and how many there are, and it goes to work π«Ά no return value, so nothing to check, she just does the thing.
π¦ ARGUMENTS π¦
ctxsβ an array of the pointers for contexts to stop monitoring. yes, pointers, plural, it's astruct damon_ctx **so it's a pointer-to-pointer situation, we love a double pointer moment β¨ this is the group of contexts getting their monitoring stopped.nr_ctxsβ size ofctxs. it's anint, and it's how many entries are in that array, sodamon_stopknows where to stop looking. no cap, if this number's wrong the vibes are wrong π
bestie pls make surenr_ctxsactually matches how many context pointers you put inctxs. that's the size of the array. that's the assignment. π
π SEE ALSO π
Kernel file ./mm/damon/core.c β go read it, it's giving main character energy:
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_start(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)
like, the whole friend group is here π§ if you're stopping things you probably also want damon_start(9) (the opposite slay) and damon_is_running(9) (the vibe check) π
mwah, that's the page π this lil number lives in ./mm/damon, it's the October 2026 edition, and it's damon_stop(9) through and through. go stop 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