mm/damon/paddr.c
Source file repositories/reference/linux-study-clean/mm/damon/paddr.c
File Facts
- System
- Linux kernel
- Corpus path
mm/damon/paddr.c- Extension
.c- Size
- 11201 bytes
- Lines
- 459
- 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/mmu_notifier.hlinux/page_idle.hlinux/pagemap.hlinux/rmap.hlinux/swap.hlinux/memory-tiers.hlinux/mm_inline.h../internal.hops-common.h
Detected Declarations
function damon_pa_phys_addrfunction damon_pa_core_addrfunction damon_pa_mkoldfunction __damon_pa_prepare_access_checkfunction damon_pa_prepare_access_checksfunction damon_for_each_targetfunction damon_pa_youngfunction __damon_pa_check_accessfunction ALIGN_DOWNfunction damon_pa_check_accessesfunction damon_for_each_targetfunction damon_pa_filter_matchfunction damon_pa_filter_passfunction damon_for_each_filterfunction damon_pa_apply_probesfunction damon_for_each_targetfunction damon_for_each_probefunction damos_pa_filter_outfunction damos_for_each_ops_filterfunction damon_pa_invalid_damos_foliofunction damon_pa_pageoutfunction damon_pa_de_activatefunction damon_pa_activate_pagesfunction damon_pa_deactivate_pagesfunction damon_pa_migratefunction damon_pa_statfunction damon_pa_apply_schemefunction damon_pa_scheme_scorefunction damon_pa_initcallmodule init damon_pa_initcall
Annotated Snippet
subsys_initcall(damon_pa_initcall);
Annotation
- Immediate include surface: `linux/mmu_notifier.h`, `linux/page_idle.h`, `linux/pagemap.h`, `linux/rmap.h`, `linux/swap.h`, `linux/memory-tiers.h`, `linux/mm_inline.h`, `../internal.h`.
- Detected declarations: `function damon_pa_phys_addr`, `function damon_pa_core_addr`, `function damon_pa_mkold`, `function __damon_pa_prepare_access_check`, `function damon_pa_prepare_access_checks`, `function damon_for_each_target`, `function damon_pa_young`, `function __damon_pa_check_access`, `function ALIGN_DOWN`, `function damon_pa_check_accesses`.
- 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.