drivers/clk/qcom/clk-rpm.c
Source file repositories/reference/linux-study-clean/drivers/clk/qcom/clk-rpm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/qcom/clk-rpm.c- Extension
.c- Size
- 15830 bytes
- Lines
- 610
- Domain
- Driver Families
- Bucket
- drivers/clk
- 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/cleanup.hlinux/clk-provider.hlinux/err.hlinux/export.hlinux/init.hlinux/kernel.hlinux/module.hlinux/mutex.hlinux/mfd/qcom_rpm.hlinux/of.hlinux/platform_device.hdt-bindings/mfd/qcom-rpm.hdt-bindings/clock/qcom,rpmcc.h
Detected Declarations
struct rpm_ccstruct clk_rpmstruct rpm_ccstruct rpm_clk_descfunction clk_rpm_handofffunction clk_rpm_set_rate_activefunction clk_rpm_set_rate_sleepfunction to_active_sleepfunction clk_rpm_preparefunction clk_rpm_unpreparefunction clk_rpm_xo_preparefunction clk_rpm_xo_unpreparefunction clk_rpm_fixed_preparefunction clk_rpm_fixed_unpreparefunction clk_rpm_set_ratefunction clk_rpm_determine_ratefunction clk_rpm_recalc_ratefunction rpm_clk_probefunction rpm_clk_initfunction rpm_clk_exitmodule init rpm_clk_init
Annotated Snippet
core_initcall(rpm_clk_init);
static void __exit rpm_clk_exit(void)
{
platform_driver_unregister(&rpm_clk_driver);
}
module_exit(rpm_clk_exit);
MODULE_DESCRIPTION("Qualcomm RPM Clock Controller Driver");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:qcom-clk-rpm");
Annotation
- Immediate include surface: `linux/cleanup.h`, `linux/clk-provider.h`, `linux/err.h`, `linux/export.h`, `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/mutex.h`.
- Detected declarations: `struct rpm_cc`, `struct clk_rpm`, `struct rpm_cc`, `struct rpm_clk_desc`, `function clk_rpm_handoff`, `function clk_rpm_set_rate_active`, `function clk_rpm_set_rate_sleep`, `function to_active_sleep`, `function clk_rpm_prepare`, `function clk_rpm_unprepare`.
- Atlas domain: Driver Families / drivers/clk.
- 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.