damon_stop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a struct 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 of ctxs. it's an int, and it's how many entries are in that array, so damon_stop knows where to stop looking. no cap, if this number's wrong the vibes are wrong πŸ™ˆ
bestie pls make sure nr_ctxs actually matches how many context pointers you put in ctxs. 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:

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