drivers/cpuidle/coupled.c
Source file repositories/reference/linux-study-clean/drivers/cpuidle/coupled.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpuidle/coupled.c- Extension
.c- Size
- 25669 bytes
- Lines
- 785
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/cpu.hlinux/cpuidle.hlinux/mutex.hlinux/sched.hlinux/slab.hlinux/spinlock.hcpuidle.h
Detected Declarations
struct cpuidle_coupledfunction cpuidle_coupled_parallel_barrierfunction cpuidle_state_is_coupledfunction cpuidle_coupled_state_verifyfunction cpuidle_coupled_set_readyfunction cpuidle_coupled_set_not_readyfunction cpuidle_coupled_no_cpus_readyfunction cpuidle_coupled_cpus_readyfunction cpuidle_coupled_cpus_waitingfunction cpuidle_coupled_no_cpus_waitingfunction cpuidle_coupled_get_statefunction cpuidle_coupled_handle_pokefunction cpuidle_coupled_pokefunction cpuidle_coupled_poke_othersfunction cpuidle_coupled_set_waitingfunction cpuidle_coupled_set_not_waitingfunction cpuidle_coupled_set_donefunction need_reschedfunction cpuidle_coupled_any_pokes_pendingfunction statefunction cpuidle_coupled_update_online_cpusfunction cpuidle_coupled_register_devicefunction for_each_cpufunction cpuidle_coupled_unregister_devicefunction cpuidle_coupled_prevent_idlefunction cpuidle_coupled_allow_idlefunction coupled_cpu_onlinefunction coupled_cpu_up_preparefunction cpuidle_coupled_initmodule init cpuidle_coupled_init
Annotated Snippet
core_initcall(cpuidle_coupled_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/cpu.h`, `linux/cpuidle.h`, `linux/mutex.h`, `linux/sched.h`, `linux/slab.h`, `linux/spinlock.h`, `cpuidle.h`.
- Detected declarations: `struct cpuidle_coupled`, `function cpuidle_coupled_parallel_barrier`, `function cpuidle_state_is_coupled`, `function cpuidle_coupled_state_verify`, `function cpuidle_coupled_set_ready`, `function cpuidle_coupled_set_not_ready`, `function cpuidle_coupled_no_cpus_ready`, `function cpuidle_coupled_cpus_ready`, `function cpuidle_coupled_cpus_waiting`, `function cpuidle_coupled_no_cpus_waiting`.
- 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.