STRUCT DAMOS_WALK_CONTROL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct damos_walk_control(9) ✨

okay bestie, so this is a page from the Kernel API Manual β€” yes, the Kernel API Manual, we're in the big leagues now πŸ’… β€” and it's literally all about struct damos_walk_control, which is the little control-freak struct that runs the show for damos_walk(). main character energy fr fr πŸ‘‘

🌸 NAME 🌸

struct damos_walk_control β€” the thing that controls damos_walk(). that's it, that's the whole name, and she ate πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

struct damos_walk_control {
    void (*walk_fn)(void *data, struct damon_ctx *ctx, struct
damon_target *t, struct damon_region *r, struct damos *s, unsigned long
sz_filter_passed);
    void *data;
 };

like… look at her. two members. no notes. πŸ’–

πŸ‘‘ Members πŸ‘‘

  • walk_fn β€” the callback function, aka the girl who gets called back for each region. every single one. she shows up πŸ’…
  • data β€” the payload, the little bundle of stuff that gets passed along to the walk functions. think of it as the aux cord 🎧

🌈 Description 🌈

so basically β€” this struct is what controls damos_walk, which is the thing that requests a specific kdamond to invoke the given function on each region that's eligible to apply actions of that kdamond's schemes. yes, that sentence is a lot, i know, but it's the whole vibe.

if you want the full lore, bestie, go refer to damos_walk for more details. iykyk 🫢

ngl this one's short and sweet β€” but don't sleep on it, she's load-bearing ✨

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/damon.h, plus the whole friend group:

  • struct damon_addr_range(9)
  • struct damon_size_range(9)
  • struct damon_region(9)
  • struct damon_target(9)
  • enum damos_action(9)
  • enum damos_quota_goal_metric(9)
  • struct damos_quota_goal(9)
  • enum damos_quota_goal_tuner(9)
  • struct damos_quota(9)
  • enum damos_wmark_metric(9)
  • struct damos_watermarks(9)
  • struct damos_stat(9)
  • enum damos_filter_type(9)
  • struct damos_filter(9)
  • struct damos_access_pattern(9)
  • struct damos_migrate_dests(9)
  • struct damos(9)
  • enum damon_ops_id(9)
  • struct damon_operations(9)
  • struct damon_intervals_goal(9)
  • enum damon_filter_type(9)
  • struct damon_filter(9)
  • struct damon_probe(9)
  • struct damon_attrs(9)
  • struct damon_ctx(9)

okay that's the read πŸ’œ this icon lives in ./include/linux, and the version tag on her is October 2026 β€” manifesting that energy for all of us ✨ mwah, go read damos_walk, ily, bye πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from