mm/damon/stat.c
Source file repositories/reference/linux-study-clean/mm/damon/stat.c
File Facts
- System
- Linux kernel
- Corpus path
mm/damon/stat.c- Extension
.c- Size
- 8142 bytes
- Lines
- 328
- 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.
- 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/init.hlinux/kernel.hlinux/module.hlinux/sort.h
Detected Declarations
function damon_stat_set_estimated_memory_bandwidthfunction damon_for_each_targetfunction damon_stat_idletimefunction damon_stat_cmp_regionsfunction damon_stat_sort_regionsfunction damon_for_each_targetfunction damon_for_each_regionfunction damon_stat_set_idletime_percentilesfunction damon_stat_damon_call_fnfunction damon_stat_startfunction damon_stat_stopfunction damon_stat_enabledfunction damon_stat_enabled_storefunction damon_stat_enabled_loadfunction damon_stat_kdamond_pid_storefunction damon_stat_kdamond_pid_loadfunction damon_stat_initmodule init damon_stat_init
Annotated Snippet
module_init(damon_stat_init);
Annotation
- Immediate include surface: `linux/damon.h`, `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/sort.h`.
- Detected declarations: `function damon_stat_set_estimated_memory_bandwidth`, `function damon_for_each_target`, `function damon_stat_idletime`, `function damon_stat_cmp_regions`, `function damon_stat_sort_regions`, `function damon_for_each_target`, `function damon_for_each_region`, `function damon_stat_set_idletime_percentiles`, `function damon_stat_damon_call_fn`, `function damon_stat_start`.
- Atlas domain: Core OS / Memory Management.
- Implementation status: integration implementation candidate.
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.