STRUCT DAMOS_ACCESS_PATTERN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct damos_access_pattern β€” the target access pattern of the given scheme, bestie. That's it, that's the vibe. ✨

Oh and hiii, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, this is our bonding era 🫢


✨ SYNOPSIS ✨

struct damos_access_pattern {
    unsigned long min_sz_region;
    unsigned long max_sz_region;
    unsigned int min_nr_accesses;
    unsigned int max_nr_accesses;
    unsigned int min_age_region;
    unsigned int max_age_region;
 };

okay so that's the whole shape of it, look at her πŸ’… six fields, all of them numbers, all of them doing the "what regions are we even talking about" job. Iconic.


πŸŽ€ Members πŸŽ€

  • min_sz_region β€” the minimum size of target regions. Like, if a region is smaller than this? Not invited to the party πŸ™ˆ
  • max_sz_region β€” the maximum size of target regions. And if it's bigger than this? Also not invited. Boundaries, bestie πŸ’€
  • min_nr_accesses β€” the minimum ->nr_accesses of target regions. Note the literal ->nr_accesses there, that's the field name, don't come for me 🌸
  • max_nr_accesses β€” the maximum ->nr_accesses of target regions. Same field, other end of the range, no cap 🧒
  • min_age_region β€” the minimum age of target regions. Youth check, lowkey πŸ¦‹
  • max_age_region β€” the maximum age of target regions. Ok grandma let's get you to bed πŸ‘‘
fr fr the whole point of this struct is: it's the target access pattern of the given scheme. It holds the range limits so the scheme knows which regions it's actually aiming at. That's the described purpose, nothing more, don't make me invent lore 😭

🌈 SEE ALSO 🌈

Kernel file ./include/linux/damon.h β€” that's where the actual header lives, go touch grass in the source tree 🌱

And the whole extended friend group, all of them with their (9) nametags:

  • 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_walk_control(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 whole page, go read the other 25, I believe in you πŸ’œ

and yeah β€” this one's sourced from ./include/linux, dated October 2026, and it's the struct damos_access_pattern(9) page, so you know exactly where you are πŸŽ€ byeee bestie, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from