kernel/latencytop.c
Source file repositories/reference/linux-study-clean/kernel/latencytop.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/latencytop.c- Extension
.c- Size
- 7763 bytes
- Lines
- 300
- Domain
- Core OS
- Bucket
- Scheduler, Processes, Timers, Sync, And Syscalls
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kallsyms.hlinux/seq_file.hlinux/notifier.hlinux/spinlock.hlinux/proc_fs.hlinux/latencytop.hlinux/export.hlinux/sched.hlinux/sched/debug.hlinux/sched/stat.hlinux/list.hlinux/stacktrace.hlinux/sysctl.h
Detected Declarations
function sysctl_latencytopfunction clear_tsk_latency_tracingfunction clear_global_latency_tracingfunction account_global_scheduler_latencyfunction selectfunction lstats_showfunction lstats_writefunction lstats_openfunction init_lstats_procfsmodule init init_lstats_procfs
Annotated Snippet
device_initcall(init_lstats_procfs);
Annotation
- Immediate include surface: `linux/kallsyms.h`, `linux/seq_file.h`, `linux/notifier.h`, `linux/spinlock.h`, `linux/proc_fs.h`, `linux/latencytop.h`, `linux/export.h`, `linux/sched.h`.
- Detected declarations: `function sysctl_latencytop`, `function clear_tsk_latency_tracing`, `function clear_global_latency_tracing`, `function account_global_scheduler_latency`, `function select`, `function lstats_show`, `function lstats_write`, `function lstats_open`, `function init_lstats_procfs`, `module init init_lstats_procfs`.
- Atlas domain: Core OS / Scheduler, Processes, Timers, Sync, And Syscalls.
- 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.