drivers/regulator/fixed.c
Source file repositories/reference/linux-study-clean/drivers/regulator/fixed.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/regulator/fixed.c- Extension
.c- Size
- 10578 bytes
- Lines
- 403
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/err.hlinux/mutex.hlinux/module.hlinux/platform_device.hlinux/pm_domain.hlinux/pm_opp.hlinux/regulator/driver.hlinux/regulator/fixed.hlinux/gpio/consumer.hlinux/slab.hlinux/of.hlinux/regulator/of_regulator.hlinux/regulator/machine.hlinux/clk.h
Detected Declarations
struct fixed_voltage_datastruct fixed_dev_typefunction reg_clock_enablefunction reg_clock_disablefunction reg_domain_enablefunction reg_domain_disablefunction reg_is_enabledfunction reg_fixed_under_voltage_irq_handlerfunction reg_fixed_get_irqsfunction of_get_fixed_voltage_configfunction reg_fixed_voltage_probefunction regulator_fixed_voltage_initfunction regulator_fixed_voltage_exitmodule init regulator_fixed_voltage_init
Annotated Snippet
subsys_initcall(regulator_fixed_voltage_init);
static void __exit regulator_fixed_voltage_exit(void)
{
platform_driver_unregister(®ulator_fixed_voltage_driver);
}
module_exit(regulator_fixed_voltage_exit);
MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
MODULE_DESCRIPTION("Fixed voltage regulator");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:reg-fixed-voltage");
Annotation
- Immediate include surface: `linux/err.h`, `linux/mutex.h`, `linux/module.h`, `linux/platform_device.h`, `linux/pm_domain.h`, `linux/pm_opp.h`, `linux/regulator/driver.h`, `linux/regulator/fixed.h`.
- Detected declarations: `struct fixed_voltage_data`, `struct fixed_dev_type`, `function reg_clock_enable`, `function reg_clock_disable`, `function reg_domain_enable`, `function reg_domain_disable`, `function reg_is_enabled`, `function reg_fixed_under_voltage_irq_handler`, `function reg_fixed_get_irqs`, `function of_get_fixed_voltage_config`.
- Atlas domain: Driver Families / drivers/regulator.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.