STRUCT DAMON_TARGET(9)
πΈ NAME πΈ
okay so welcome to the struct damon_target(9) page of the Kernel API Manual, bestie β this one is literally just about one thing: struct damon_target, and it Represents a monitoring target. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
here's the whole struct, and yes it's tiny, she's lowkey an icon for that:
struct damon_target {
struct pid *pid;
bool obsolete;
};
π MEMBERS π
pidβ the PID of the virtual address space you wanna monitor π«Ά like, that's the thing being watched, periodt.obsoleteβ a lilboolthat says whether the commit destination target is obsolete. note the "destination" part, it matters, iykyk π
π DESCRIPTION π
okay so picture this: each monitoring context could have multiple targets. not just one. multiple. for example β and this is the textbook case β a context for virtual memory address spaces could have multiple target processes running at once π
the pid field should be set for the appropriate struct damon_operations, and that includes the virtual address spaces monitoring operations. so like, if that's your ops type, pid is your moment to shine β¨
now obsolete β and this is the important bit, don't skip it π β is used only for damon_commit_targets source targets. its whole job is to specify that the matching destination targets are obsolete. that's it. that's her only purpose. if you wanna see how it's actually handled, go read damon_commit_targets β the manpage said so, not me π
no cap:obsoleteis scoped todamon_commit_targetssource targets specifically. don't go slapping it on random stuff and expecting magic, bestie π
π¦ SEE ALSO π¦
kernel file ./include/linux/damon.h, plus the whole DAMON cinematic universe β go off, queen π:
struct damon_addr_range(9)struct damon_size_range(9)struct damon_region(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)
and that's the page!! π₯³ mwah, kisses, go monitor some targets responsibly π
this whole thing lives in ./include/linux, dated October 2026, in the grand tradition of struct damon_target(9) β slay, bye ππ
π¦ 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