drivers/cpuidle/cpuidle.c
Source file repositories/reference/linux-study-clean/drivers/cpuidle/cpuidle.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpuidle/cpuidle.c- Extension
.c- Size
- 20409 bytes
- Lines
- 832
- Domain
- Driver Families
- Bucket
- drivers/cpuidle
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- 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/percpu-defs.hlinux/clockchips.hlinux/kernel.hlinux/mutex.hlinux/sched.hlinux/sched/clock.hlinux/sched/idle.hlinux/notifier.hlinux/pm_qos.hlinux/cpu.hlinux/cpuidle.hlinux/ktime.hlinux/hrtimer.hlinux/module.hlinux/suspend.hlinux/tick.hlinux/mmu_context.hlinux/context_tracking.htrace/events/power.hcpuidle.h
Detected Declarations
function cpuidle_disabledfunction disable_cpuidlefunction cpuidle_not_availablefunction cpuidle_play_deadfunction find_deepest_statefunction cpuidle_use_deepest_statefunction cpuidle_find_deepest_statefunction enter_s2idle_properfunction cpuidle_enter_s2idlefunction cpuidle_enter_statefunction cpuidle_selectfunction cpuidle_enterfunction cpuidle_reflectfunction cpuidle_poll_timefunction cpuidle_install_idle_handlerfunction cpuidle_uninstall_idle_handlerfunction cpuidle_pause_and_lockfunction cpuidle_resume_and_unlockfunction cpuidle_pausefunction cpuidle_resumefunction cpuidle_enable_devicefunction cpuidle_disable_devicefunction __cpuidle_unregister_devicefunction __cpuidle_device_initfunction __cpuidle_register_devicefunction cpuidle_register_devicefunction cpuidle_unregister_device_no_lockfunction cpuidle_unregister_devicefunction cpuidle_unregisterfunction for_each_cpufunction cpuidle_registerfunction for_each_cpufunction cpuidle_initmodule init cpuidle_initexport cpuidle_pause_and_lockexport cpuidle_resume_and_unlockexport cpuidle_enable_deviceexport cpuidle_disable_deviceexport cpuidle_register_deviceexport cpuidle_unregister_device_no_lockexport cpuidle_unregister_deviceexport cpuidle_unregisterexport cpuidle_register
Annotated Snippet
core_initcall(cpuidle_init);
Annotation
- Immediate include surface: `linux/percpu-defs.h`, `linux/clockchips.h`, `linux/kernel.h`, `linux/mutex.h`, `linux/sched.h`, `linux/sched/clock.h`, `linux/sched/idle.h`, `linux/notifier.h`.
- Detected declarations: `function cpuidle_disabled`, `function disable_cpuidle`, `function cpuidle_not_available`, `function cpuidle_play_dead`, `function find_deepest_state`, `function cpuidle_use_deepest_state`, `function cpuidle_find_deepest_state`, `function enter_s2idle_proper`, `function cpuidle_enter_s2idle`, `function cpuidle_enter_state`.
- Atlas domain: Driver Families / drivers/cpuidle.
- 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.