STRUCT DAMON_REGION(9)
π struct damon_region(9) π
okay so bestie, this is the Kernel API Manual page for struct damon_region β the little struct that represents a monitoring target region, and honestly? iconic. β¨
πΈ NAME πΈ
struct damon_region β Represents a monitoring target region. π
π¦ SYNOPSIS π¦
struct damon_region {
struct damon_addr_range ar;
unsigned long sampling_addr;
unsigned int nr_accesses;
unsigned char probe_hits[DAMON_MAX_PROBES];
unsigned int age;
};
π Members π
arβ The address range of the region. πΊοΈsampling_addrβ Address of the sample for the next access check. πnr_accessesβ Access frequency of this region. π₯probe_hitsβ Number of probe-positive region samples. π―ageβ Age of this region. π°οΈ
π Description π
For any use case, ar should be non-zero positive size. damon_set_regions does the validation β so let it handle the check, okay? π«Ά
nr_accesses is reset to zero for every damon_attrs->aggr_interval, and it is increased for every damon_attrs->sample_interval if an access to the region during the last sampling interval is found. The update of this field should not be done with direct access but with the helper function, damon_update_region_access_rate. π¨
bestie do NOT touchnr_accessesdirectly β use the helperdamon_update_region_access_rate. that's the rule. periodt. π
age is initially zero, increased for each aggregation interval, and reset to zero again if the access frequency is significantly changed. If two regions are merged into a new region, both nr_accesses and age of the new region are set as region size-weighted average of those of the two regions. π
π₯ SEE ALSO π₯
go peek at the kernel file ./include/linux/damon.h and these pages bestie:
struct damon_addr_range(9)struct damon_size_range(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_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)
mwah π this page comes from ./include/linux, dated October 2026, and it's all struct damon_region(9) β bye bestie π«Άπ
π¦ 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