drivers/clk/qcom/clk-smd-rpm.c
Source file repositories/reference/linux-study-clean/drivers/clk/qcom/clk-smd-rpm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/qcom/clk-smd-rpm.c- Extension
.c- Size
- 53073 bytes
- Lines
- 1447
- 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.
- 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/of.hlinux/platform_device.hlinux/soc/qcom/smd-rpm.hdt-bindings/clock/qcom,rpmcc.h
Detected Declarations
struct clk_smd_rpmstruct rpm_smd_clk_descfunction clk_smd_rpm_handofffunction clk_smd_rpm_set_rate_activefunction clk_smd_rpm_set_rate_sleepfunction to_active_sleepfunction clk_smd_rpm_preparefunction clk_smd_rpm_unpreparefunction clk_smd_rpm_set_ratefunction clk_smd_rpm_determine_ratefunction clk_smd_rpm_recalc_ratefunction clk_smd_rpm_enable_scalingfunction rpm_smd_unregister_iccfunction rpm_smd_clk_probefunction rpm_smd_clk_initfunction rpm_smd_clk_exitmodule init rpm_smd_clk_init
Annotated Snippet
core_initcall(rpm_smd_clk_init);
static void __exit rpm_smd_clk_exit(void)
{
platform_driver_unregister(&rpm_smd_clk_driver);
}
module_exit(rpm_smd_clk_exit);
MODULE_DESCRIPTION("Qualcomm RPM over SMD Clock Controller Driver");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:qcom-clk-smd-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 clk_smd_rpm`, `struct rpm_smd_clk_desc`, `function clk_smd_rpm_handoff`, `function clk_smd_rpm_set_rate_active`, `function clk_smd_rpm_set_rate_sleep`, `function to_active_sleep`, `function clk_smd_rpm_prepare`, `function clk_smd_rpm_unprepare`, `function clk_smd_rpm_set_rate`, `function clk_smd_rpm_determine_rate`.
- 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.