drivers/regulator/qcom_rpm-regulator.c
Source file repositories/reference/linux-study-clean/drivers/regulator/qcom_rpm-regulator.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/qcom_rpm-regulator.c- Extension
.c- Size
- 29652 bytes
- Lines
- 1011
- Domain
- Driver Families
- Bucket
- drivers/regulator
- 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/module.hlinux/platform_device.hlinux/of.hlinux/of_device.hlinux/regulator/driver.hlinux/regulator/machine.hlinux/regulator/of_regulator.hlinux/mfd/qcom_rpm.hdt-bindings/mfd/qcom-rpm.h
Detected Declarations
struct request_memberstruct rpm_reg_partsstruct qcom_rpm_regstruct rpm_regulator_datafunction rpm_reg_writefunction rpm_reg_set_mV_selfunction rpm_reg_set_uV_selfunction rpm_reg_get_voltagefunction rpm_reg_mV_enablefunction rpm_reg_uV_enablefunction rpm_reg_switch_enablefunction rpm_reg_mV_disablefunction rpm_reg_uV_disablefunction rpm_reg_switch_disablefunction rpm_reg_is_enabledfunction rpm_reg_set_loadfunction rpm_reg_setfunction rpm_reg_of_parse_freqfunction rpm_reg_of_parsefunction rpm_reg_probefunction rpm_reg_initfunction rpm_reg_exitmodule init rpm_reg_init
Annotated Snippet
subsys_initcall(rpm_reg_init);
static void __exit rpm_reg_exit(void)
{
platform_driver_unregister(&rpm_reg_driver);
}
module_exit(rpm_reg_exit)
MODULE_DESCRIPTION("Qualcomm RPM regulator driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/module.h`, `linux/platform_device.h`, `linux/of.h`, `linux/of_device.h`, `linux/regulator/driver.h`, `linux/regulator/machine.h`, `linux/regulator/of_regulator.h`, `linux/mfd/qcom_rpm.h`.
- Detected declarations: `struct request_member`, `struct rpm_reg_parts`, `struct qcom_rpm_reg`, `struct rpm_regulator_data`, `function rpm_reg_write`, `function rpm_reg_set_mV_sel`, `function rpm_reg_set_uV_sel`, `function rpm_reg_get_voltage`, `function rpm_reg_mV_enable`, `function rpm_reg_uV_enable`.
- Atlas domain: Driver Families / drivers/regulator.
- 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.