drivers/cpufreq/qcom-cpufreq-nvmem.c
Source file repositories/reference/linux-study-clean/drivers/cpufreq/qcom-cpufreq-nvmem.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpufreq/qcom-cpufreq-nvmem.c- Extension
.c- Size
- 16943 bytes
- Lines
- 673
- Domain
- Driver Families
- Bucket
- drivers/cpufreq
- 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/cpu.hlinux/err.hlinux/init.hlinux/kernel.hlinux/module.hlinux/nvmem-consumer.hlinux/of.hlinux/platform_device.hlinux/pm.hlinux/pm_domain.hlinux/pm_opp.hlinux/pm_runtime.hlinux/slab.hlinux/soc/qcom/smem.hdt-bindings/arm/qcom,ids.h
Detected Declarations
struct qcom_cpufreq_drvstruct qcom_cpufreq_match_datastruct qcom_cpufreq_drv_cpustruct qcom_cpufreq_drvenum ipq806x_versionsenum ipq8074_versionsfunction qcom_cpufreq_simple_get_versionfunction get_krait_bin_format_afunction get_krait_bin_format_bfunction qcom_cpufreq_kryo_name_versionfunction qcom_cpufreq_krait_name_versionfunction qcom_cpufreq_ipq8064_name_versionfunction qcom_cpufreq_ipq6018_name_versionfunction qcom_cpufreq_ipq8074_name_versionfunction qcom_cpufreq_suspend_pd_devsfunction qcom_cpufreq_probefunction for_each_present_cpufunction qcom_cpufreq_removefunction for_each_present_cpufunction qcom_cpufreq_suspendfunction qcom_cpufreq_initfunction qcom_cpufreq_exitmodule init qcom_cpufreq_init
Annotated Snippet
module_init(qcom_cpufreq_init);
static void __exit qcom_cpufreq_exit(void)
{
platform_device_unregister(cpufreq_pdev);
platform_driver_unregister(&qcom_cpufreq_driver);
}
module_exit(qcom_cpufreq_exit);
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. CPUfreq driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/cpu.h`, `linux/err.h`, `linux/init.h`, `linux/kernel.h`, `linux/module.h`, `linux/nvmem-consumer.h`, `linux/of.h`, `linux/platform_device.h`.
- Detected declarations: `struct qcom_cpufreq_drv`, `struct qcom_cpufreq_match_data`, `struct qcom_cpufreq_drv_cpu`, `struct qcom_cpufreq_drv`, `enum ipq806x_versions`, `enum ipq8074_versions`, `function qcom_cpufreq_simple_get_version`, `function get_krait_bin_format_a`, `function get_krait_bin_format_b`, `function qcom_cpufreq_kryo_name_version`.
- Atlas domain: Driver Families / drivers/cpufreq.
- 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.