mm/damon/vaddr.c
Source file repositories/reference/linux-study-clean/mm/damon/vaddr.c
File Facts
- System
- Linux kernel
- Corpus path
mm/damon/vaddr.c- Extension
.c- Size
- 24800 bytes
- Lines
- 991
- 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/highmem.hlinux/hugetlb.hlinux/mman.hlinux/mmu_notifier.hlinux/page_idle.hlinux/pagewalk.hlinux/sched/mm.h../internal.hops-common.htests/vaddr-kunit.h
Detected Declarations
struct damon_young_walk_privatestruct damos_va_migrate_privatestruct damos_va_stat_privatefunction sz_rangefunction __damon_va_three_regionsfunction targetfunction targetfunction damon_va_initfunction damon_for_each_targetfunction damon_va_updatefunction damon_for_each_targetfunction damon_va_walk_page_rangefunction damon_mkold_pmd_entryfunction damon_hugetlb_mkoldfunction damon_mkold_hugetlb_entryfunction damon_va_mkoldfunction __damon_va_prepare_access_checkfunction damon_va_prepare_access_checksfunction damon_for_each_targetfunction damon_young_pmd_entryfunction damon_young_hugetlb_entryfunction damon_va_youngfunction __damon_va_check_accessfunction ALIGN_DOWNfunction damon_va_check_accessesfunction damon_for_each_targetfunction damon_for_each_regionfunction damos_va_filter_young_matchfunction damos_va_filter_outfunction damos_for_each_ops_filterfunction weighted_interleave_nidfunction damos_va_migrate_pmd_entryfunction damon_va_target_validfunction damon_va_cleanup_targetfunction damos_madvisefunction damos_madvisefunction damos_va_migratefunction damos_va_invalid_foliofunction damos_va_stat_pmd_entryfunction damos_va_statfunction damon_va_apply_schemefunction damon_va_scheme_scorefunction damon_va_initcallmodule init damon_va_initcall
Annotated Snippet
subsys_initcall(damon_va_initcall);
#include "tests/vaddr-kunit.h"
Annotation
- Immediate include surface: `linux/highmem.h`, `linux/hugetlb.h`, `linux/mman.h`, `linux/mmu_notifier.h`, `linux/page_idle.h`, `linux/pagewalk.h`, `linux/sched/mm.h`, `../internal.h`.
- Detected declarations: `struct damon_young_walk_private`, `struct damos_va_migrate_private`, `struct damos_va_stat_private`, `function sz_range`, `function __damon_va_three_regions`, `function target`, `function target`, `function damon_va_init`, `function damon_for_each_target`, `function damon_va_update`.
- 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.