drivers/cpufreq/bmips-cpufreq.c
Source file repositories/reference/linux-study-clean/drivers/cpufreq/bmips-cpufreq.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/cpufreq/bmips-cpufreq.c- Extension
.c- Size
- 4468 bytes
- Lines
- 187
- 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/cpufreq.hlinux/module.hlinux/of_address.hlinux/slab.hasm/time.h
Detected Declarations
struct cpufreq_compatenum bmips_typefunction htp_freq_to_cpu_freqfunction bmips_cpufreq_get_freq_tablefunction bmips_cpufreq_getfunction bmips_cpufreq_target_indexfunction bmips_cpufreq_exitfunction bmips_cpufreq_initfunction bmips_cpufreq_driver_initfunction bmips_cpufreq_driver_exitmodule init bmips_cpufreq_driver_init
Annotated Snippet
module_init(bmips_cpufreq_driver_init);
static void __exit bmips_cpufreq_driver_exit(void)
{
cpufreq_unregister_driver(&bmips_cpufreq_driver);
}
module_exit(bmips_cpufreq_driver_exit);
MODULE_AUTHOR("Markus Mayer <mmayer@broadcom.com>");
MODULE_DESCRIPTION("CPUfreq driver for Broadcom BMIPS SoCs");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/cpufreq.h`, `linux/module.h`, `linux/of_address.h`, `linux/slab.h`, `asm/time.h`.
- Detected declarations: `struct cpufreq_compat`, `enum bmips_type`, `function htp_freq_to_cpu_freq`, `function bmips_cpufreq_get_freq_table`, `function bmips_cpufreq_get`, `function bmips_cpufreq_target_index`, `function bmips_cpufreq_exit`, `function bmips_cpufreq_init`, `function bmips_cpufreq_driver_init`, `function bmips_cpufreq_driver_exit`.
- 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.