drivers/regulator/qcom_smd-regulator.c
Source file repositories/reference/linux-study-clean/drivers/regulator/qcom_smd-regulator.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/qcom_smd-regulator.c- Extension
.c- Size
- 60714 bytes
- Lines
- 1549
- 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.
- 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/module.hlinux/of.hlinux/platform_device.hlinux/regulator/driver.hlinux/regulator/of_regulator.hlinux/soc/qcom/smd-rpm.h
Detected Declarations
struct qcom_rpm_regstruct rpm_regulator_reqstruct rpm_regulator_datafunction rpm_reg_write_activefunction rpm_reg_enablefunction rpm_reg_is_enabledfunction rpm_reg_disablefunction rpm_reg_get_voltagefunction rpm_reg_set_voltagefunction rpm_reg_set_loadfunction rpm_regulator_init_vregfunction rpm_reg_probefunction for_each_available_child_of_node_scopedfunction 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/of.h`, `linux/platform_device.h`, `linux/regulator/driver.h`, `linux/regulator/of_regulator.h`, `linux/soc/qcom/smd-rpm.h`.
- Detected declarations: `struct qcom_rpm_reg`, `struct rpm_regulator_req`, `struct rpm_regulator_data`, `function rpm_reg_write_active`, `function rpm_reg_enable`, `function rpm_reg_is_enabled`, `function rpm_reg_disable`, `function rpm_reg_get_voltage`, `function rpm_reg_set_voltage`, `function rpm_reg_set_load`.
- Atlas domain: Driver Families / drivers/regulator.
- 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.