kernel/time/sched_clock.c
Source file repositories/reference/linux-study-clean/kernel/time/sched_clock.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/time/sched_clock.c- Extension
.c- Size
- 8814 bytes
- Lines
- 334
- 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/clocksource.hlinux/init.hlinux/jiffies.hlinux/ktime.hlinux/kernel.hlinux/math.hlinux/moduleparam.hlinux/sched.hlinux/sched/clock.hlinux/syscore_ops.hlinux/hrtimer.hlinux/sched_clock.hlinux/seqlock.hlinux/bitops.htimekeeping.h
Detected Declarations
struct clock_datafunction jiffy_sched_clock_readfunction cyc_to_nsfunction sched_clock_read_retryfunction __sched_clockfunction sched_clock_noinstrfunction sched_clockfunction update_clock_read_datafunction sched_clockfunction sched_clock_pollfunction sched_clock_registerfunction generic_sched_clock_initfunction sched_clockfunction sched_clock_suspendfunction sched_clock_syscore_suspendfunction sched_clock_resumefunction sched_clock_syscore_resumefunction sched_clock_syscore_initmodule init sched_clock_syscore_initexport sched_clock_register
Annotated Snippet
device_initcall(sched_clock_syscore_init);
Annotation
- Immediate include surface: `linux/clocksource.h`, `linux/init.h`, `linux/jiffies.h`, `linux/ktime.h`, `linux/kernel.h`, `linux/math.h`, `linux/moduleparam.h`, `linux/sched.h`.
- Detected declarations: `struct clock_data`, `function jiffy_sched_clock_read`, `function cyc_to_ns`, `function sched_clock_read_retry`, `function __sched_clock`, `function sched_clock_noinstr`, `function sched_clock`, `function update_clock_read_data`, `function sched_clock`, `function sched_clock_poll`.
- 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.