drivers/clk/qcom/clk-rpmh.c
Source file repositories/reference/linux-study-clean/drivers/clk/qcom/clk-rpmh.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clk/qcom/clk-rpmh.c- Extension
.c- Size
- 36965 bytes
- Lines
- 1130
- 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/clk-provider.hlinux/err.hlinux/kernel.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/string_choices.hsoc/qcom/cmd-db.hsoc/qcom/rpmh.hsoc/qcom/tcs.hdt-bindings/clock/qcom,rpmh.h
Detected Declarations
struct bcm_dbstruct clk_rpmhstruct clk_rpmh_descfunction BITfunction BITfunction has_state_changedfunction clk_rpmh_sendfunction clk_rpmh_send_aggregate_commandfunction clk_rpmh_aggregate_state_send_commandfunction clk_rpmh_preparefunction clk_rpmh_unpreparefunction clk_rpmh_recalc_ratefunction clk_rpmh_bcm_send_cmdfunction clk_rpmh_bcm_preparefunction clk_rpmh_bcm_unpreparefunction clk_rpmh_bcm_set_ratefunction clk_rpmh_determine_ratefunction clk_rpmh_bcm_recalc_ratefunction clk_rpmh_probefunction clk_rpmh_initfunction clk_rpmh_exitmodule init clk_rpmh_init
Annotated Snippet
core_initcall(clk_rpmh_init);
static void __exit clk_rpmh_exit(void)
{
platform_driver_unregister(&clk_rpmh_driver);
}
module_exit(clk_rpmh_exit);
MODULE_DESCRIPTION("QCOM RPMh Clock Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/clk-provider.h`, `linux/err.h`, `linux/kernel.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `linux/string_choices.h`, `soc/qcom/cmd-db.h`.
- Detected declarations: `struct bcm_db`, `struct clk_rpmh`, `struct clk_rpmh_desc`, `function BIT`, `function BIT`, `function has_state_changed`, `function clk_rpmh_send`, `function clk_rpmh_send_aggregate_command`, `function clk_rpmh_aggregate_state_send_command`, `function clk_rpmh_prepare`.
- 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.