kernel/trace/rv/monitors/sleep/sleep.c
Source file repositories/reference/linux-study-clean/kernel/trace/rv/monitors/sleep/sleep.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/trace/rv/monitors/sleep/sleep.c- Extension
.c- Size
- 7698 bytes
- Lines
- 250
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/ftrace.hlinux/tracepoint.hlinux/init.hlinux/irqflags.hlinux/kernel.hlinux/module.hlinux/rv.hlinux/sched/deadline.hlinux/sched/rt.hrv/instrumentation.htrace/events/syscalls.htrace/events/sched.htrace/events/lock.huapi/linux/futex.hrv_trace.hmonitors/rtapp/rtapp.hsleep.hrv/ltl_monitor.h
Detected Declarations
function ltl_atoms_fetchfunction ltl_atoms_initfunction handle_sched_set_statefunction handle_sched_wakeupfunction handle_sched_wakingfunction handle_contention_beginfunction handle_contention_endfunction handle_sys_enterfunction handle_sys_exitfunction handle_kthread_stopfunction enable_sleepfunction disable_sleepfunction register_sleepfunction unregister_sleepmodule init register_sleep
Annotated Snippet
module_init(register_sleep);
module_exit(unregister_sleep);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Nam Cao <namcao@linutronix.de>");
MODULE_DESCRIPTION("sleep: Monitor that RT tasks do not undesirably sleep");
Annotation
- Immediate include surface: `linux/ftrace.h`, `linux/tracepoint.h`, `linux/init.h`, `linux/irqflags.h`, `linux/kernel.h`, `linux/module.h`, `linux/rv.h`, `linux/sched/deadline.h`.
- Detected declarations: `function ltl_atoms_fetch`, `function ltl_atoms_init`, `function handle_sched_set_state`, `function handle_sched_wakeup`, `function handle_sched_waking`, `function handle_contention_begin`, `function handle_contention_end`, `function handle_sys_enter`, `function handle_sys_exit`, `function handle_kthread_stop`.
- Atlas domain: Core OS / Scheduler, Processes, Timers, Sync, And Syscalls.
- 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.