mm/vmstat.c
Source file repositories/reference/linux-study-clean/mm/vmstat.c
File Facts
- System
- Linux kernel
- Corpus path
mm/vmstat.c- Extension
.c- Size
- 65819 bytes
- Lines
- 2436
- 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/fs.hlinux/mm.hlinux/err.hlinux/module.hlinux/slab.hlinux/cpu.hlinux/cpumask.hlinux/vmstat.hlinux/proc_fs.hlinux/seq_file.hlinux/debugfs.hlinux/sched.hlinux/math64.hlinux/writeback.hlinux/compaction.hlinux/mm_inline.hlinux/page_owner.hlinux/sched/isolation.hinternal.h
Detected Declarations
struct contig_page_infofunction zero_zone_numa_countersfunction for_each_online_cpufunction zero_zones_numa_countersfunction zero_global_numa_countersfunction invalid_numa_statisticsfunction sysctl_vm_numa_stat_handlerfunction sum_vm_eventsfunction for_each_online_cpufunction all_vm_eventsfunction vm_events_fold_cpufunction fold_vm_zone_numa_eventsfunction for_each_online_cpufunction fold_vm_numa_eventsfunction calculate_pressure_thresholdfunction calculate_normal_thresholdfunction refresh_zone_stat_thresholdsfunction for_each_online_cpufunction for_each_populated_zonefunction for_each_online_cpufunction set_pgdat_percpu_thresholdfunction __mod_zone_page_statefunction __mod_node_page_statefunction page_zonefunction __inc_node_statefunction __inc_zone_page_statefunction __inc_node_page_statefunction __dec_zone_statefunction __dec_node_statefunction __dec_zone_page_statefunction __dec_node_page_statefunction mod_statefunction mod_zone_page_statefunction inc_zone_page_statefunction dec_zone_page_statefunction mod_node_statefunction mod_node_page_statefunction inc_node_page_statefunction dec_node_page_statefunction mod_zone_page_statefunction inc_zone_page_statefunction dec_zone_page_statefunction mod_node_page_statefunction inc_node_page_statefunction dec_node_page_statefunction fold_difffunction refresh_cpu_vm_statsfunction for_each_populated_zone
Annotated Snippet
module_init(extfrag_debug_init);
#endif
Annotation
- Immediate include surface: `linux/fs.h`, `linux/mm.h`, `linux/err.h`, `linux/module.h`, `linux/slab.h`, `linux/cpu.h`, `linux/cpumask.h`, `linux/vmstat.h`.
- Detected declarations: `struct contig_page_info`, `function zero_zone_numa_counters`, `function for_each_online_cpu`, `function zero_zones_numa_counters`, `function zero_global_numa_counters`, `function invalid_numa_statistics`, `function sysctl_vm_numa_stat_handler`, `function sum_vm_events`, `function for_each_online_cpu`, `function all_vm_events`.
- 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.