mm/damon/core.c
Source file repositories/reference/linux-study-clean/mm/damon/core.c
File Facts
- System
- Linux kernel
- Corpus path
mm/damon/core.c- Extension
.c- Size
- 102282 bytes
- Lines
- 3771
- Domain
- Core OS
- Bucket
- Memory Management
- Inferred role
- Core OS: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/damon.hlinux/delay.hlinux/kthread.hlinux/memcontrol.hlinux/mm.hlinux/psi.hlinux/sched.hlinux/slab.hlinux/string.hlinux/string_choices.hops-common.htrace/events/damon.htests/core-kunit.h
Detected Declarations
struct damon_system_ram_range_walk_argfunction __damon_is_registered_opsfunction damon_is_registered_opsfunction damon_register_opsfunction damon_select_opsfunction damon_add_filterfunction damon_del_filterfunction damon_free_filterfunction damon_destroy_filterfunction damon_for_each_filterfunction damon_add_probefunction damon_del_probefunction damon_free_probefunction damon_destroy_probefunction damon_for_each_probefunction damon_verify_new_regionfunction damon_verify_new_regionfunction damon_add_regionfunction damon_insert_regionfunction damon_verify_del_regionfunction damon_verify_del_regionfunction damon_free_regionfunction damon_destroy_regionfunction damon_is_last_regionfunction damon_intersectfunction damon_fill_regions_holesfunction damon_for_each_region_fromfunction damon_set_regionsfunction damon_for_each_region_fromfunction damos_filter_for_opsfunction damos_add_filterfunction damos_del_filterfunction damos_free_filterfunction damos_destroy_filterfunction damos_add_quota_goalfunction damos_del_quota_goalfunction damos_free_quota_goalfunction damos_destroy_quota_goalfunction damos_quota_goals_emptyfunction damos_set_next_apply_sisfunction damon_add_schemefunction damon_del_schemefunction damon_free_schemefunction damon_destroy_schemefunction damon_add_targetfunction damon_targets_emptyfunction damon_del_targetfunction damon_free_target
Annotated Snippet
subsys_initcall(damon_init);
#include "tests/core-kunit.h"
Annotation
- Immediate include surface: `linux/damon.h`, `linux/delay.h`, `linux/kthread.h`, `linux/memcontrol.h`, `linux/mm.h`, `linux/psi.h`, `linux/sched.h`, `linux/slab.h`.
- Detected declarations: `struct damon_system_ram_range_walk_arg`, `function __damon_is_registered_ops`, `function damon_is_registered_ops`, `function damon_register_ops`, `function damon_select_ops`, `function damon_add_filter`, `function damon_del_filter`, `function damon_free_filter`, `function damon_destroy_filter`, `function damon_for_each_filter`.
- Atlas domain: Core OS / Memory Management.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.