STRUCT DAMOS_ACCESS_PATTERN(9)
π 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_accessesof target regions. Note the literal->nr_accessesthere, that's the field name, don't come for me πΈmax_nr_accessesβ the maximum->nr_accessesof 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
- 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