drivers/cpuidle/cpuidle-psci.c
Source file repositories/reference/linux-study-clean/drivers/cpuidle/cpuidle-psci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpuidle/cpuidle-psci.c- Extension
.c- Size
- 11648 bytes
- Lines
- 493
- 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.
- 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/cpuhotplug.hlinux/cpu_cooling.hlinux/cpuidle.hlinux/cpumask.hlinux/cpu_pm.hlinux/kernel.hlinux/module.hlinux/of.hlinux/device/faux.hlinux/psci.hlinux/pm_domain.hlinux/pm_runtime.hlinux/slab.hlinux/string.hlinux/syscore_ops.hasm/cpuidle.htrace/events/power.hcpuidle-psci.hdt_idle_states.hdt_idle_genpd.h
Detected Declarations
struct psci_cpuidle_datastruct psci_cpuidle_domain_statefunction psci_set_domain_statefunction psci_clear_domain_statefunction __psci_enter_domain_idle_statefunction psci_enter_domain_idle_statefunction psci_enter_s2idle_domain_idle_statefunction psci_idle_cpuhp_upfunction psci_idle_cpuhp_downfunction psci_idle_syscore_switchfunction for_each_possible_cpufunction psci_idle_syscore_suspendfunction psci_idle_syscore_resumefunction psci_idle_init_syscorefunction psci_idle_init_cpuhpfunction psci_enter_idle_statefunction psci_dt_parse_state_nodefunction psci_dt_cpu_init_topologyfunction psci_dt_cpu_init_idlefunction psci_cpu_init_idlefunction psci_cpu_deinit_idlefunction psci_idle_init_cpufunction psci_cpuidle_probefunction for_each_present_cpufunction dt_idle_state_presentfunction psci_idle_initmodule init psci_idle_init
Annotated Snippet
device_initcall(psci_idle_init);
Annotation
- Immediate include surface: `linux/cpuhotplug.h`, `linux/cpu_cooling.h`, `linux/cpuidle.h`, `linux/cpumask.h`, `linux/cpu_pm.h`, `linux/kernel.h`, `linux/module.h`, `linux/of.h`.
- Detected declarations: `struct psci_cpuidle_data`, `struct psci_cpuidle_domain_state`, `function psci_set_domain_state`, `function psci_clear_domain_state`, `function __psci_enter_domain_idle_state`, `function psci_enter_domain_idle_state`, `function psci_enter_s2idle_domain_idle_state`, `function psci_idle_cpuhp_up`, `function psci_idle_cpuhp_down`, `function psci_idle_syscore_switch`.
- Atlas domain: Driver Families / drivers/cpuidle.
- 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.