kernel/hung_task.c
Source file repositories/reference/linux-study-clean/kernel/hung_task.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/hung_task.c- Extension
.c- Size
- 15578 bytes
- Lines
- 584
- 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/mm.hlinux/cpu.hlinux/nmi.hlinux/init.hlinux/delay.hlinux/freezer.hlinux/kthread.hlinux/lockdep.hlinux/export.hlinux/panic_notifier.hlinux/sysctl.hlinux/suspend.hlinux/utsname.hlinux/sched/signal.hlinux/sched/debug.hlinux/sched/sysctl.hlinux/hung_task.hlinux/rwsem.hlinux/sys_info.htrace/events/sched.h
Detected Declarations
function hung_task_panicfunction task_is_hungfunction debug_show_blockerfunction debug_show_blockerfunction rcu_lock_breakfunction check_hung_uninterruptible_tasksfunction hung_timeout_jiffiesfunction proc_dohung_task_detect_countfunction proc_dohung_task_timeout_secsfunction hung_task_sysctl_initfunction reset_hung_task_detectorfunction hungtask_pm_notifyfunction watchdogfunction hung_task_initmodule init hung_task_initexport reset_hung_task_detector
Annotated Snippet
subsys_initcall(hung_task_init);
Annotation
- Immediate include surface: `linux/mm.h`, `linux/cpu.h`, `linux/nmi.h`, `linux/init.h`, `linux/delay.h`, `linux/freezer.h`, `linux/kthread.h`, `linux/lockdep.h`.
- Detected declarations: `function hung_task_panic`, `function task_is_hung`, `function debug_show_blocker`, `function debug_show_blocker`, `function rcu_lock_break`, `function check_hung_uninterruptible_tasks`, `function hung_timeout_jiffies`, `function proc_dohung_task_detect_count`, `function proc_dohung_task_timeout_secs`, `function hung_task_sysctl_init`.
- 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.