drivers/platform/mips/cpu_hwmon.c
Source file repositories/reference/linux-study-clean/drivers/platform/mips/cpu_hwmon.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/mips/cpu_hwmon.c- Extension
.c- Size
- 4496 bytes
- Lines
- 174
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/err.hlinux/module.hlinux/reboot.hlinux/jiffies.hlinux/hwmon.hlinux/hwmon-sysfs.hloongson.hboot_param.hloongson_hwmon.hloongson_regs.h
Detected Declarations
function loongson3_cpu_tempfunction cpu_temp_labelfunction get_cpu_tempfunction cpu_hwmon_is_visiblefunction do_thermal_timerfunction loongson_hwmon_initfunction loongson_hwmon_exitmodule init loongson_hwmon_init
Annotated Snippet
module_init(loongson_hwmon_init);
module_exit(loongson_hwmon_exit);
MODULE_AUTHOR("Yu Xiang <xiangy@lemote.com>");
MODULE_AUTHOR("Huacai Chen <chenhc@lemote.com>");
MODULE_DESCRIPTION("Loongson CPU Hwmon driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/err.h`, `linux/module.h`, `linux/reboot.h`, `linux/jiffies.h`, `linux/hwmon.h`, `linux/hwmon-sysfs.h`, `loongson.h`, `boot_param.h`.
- Detected declarations: `function loongson3_cpu_temp`, `function cpu_temp_label`, `function get_cpu_temp`, `function cpu_hwmon_is_visible`, `function do_thermal_timer`, `function loongson_hwmon_init`, `function loongson_hwmon_exit`, `module init loongson_hwmon_init`.
- Atlas domain: Driver Families / drivers/platform.
- 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.