drivers/hwmon/gpd-fan.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/gpd-fan.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/gpd-fan.c- Extension
.c- Size
- 16622 bytes
- Lines
- 745
- Domain
- Driver Families
- Bucket
- drivers/hwmon
- 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/dmi.hlinux/hwmon.hlinux/io.hlinux/ioport.hlinux/kernel.hlinux/module.hlinux/platform_device.h
Detected Declarations
struct gpd_fan_datastruct gpd_fan_drvdataenum gpd_boardenum FAN_PWM_ENABLEfunction gpd_ecram_readfunction gpd_ecram_writefunction gpd_generic_read_rpmfunction gpd_wm2_read_rpmfunction gpd_read_rpmfunction gpd_wm2_read_pwmfunction gpd_read_pwmfunction gpd_cast_pwm_rangefunction gpd_generic_write_pwmfunction gpd_duo_write_pwmfunction gpd_write_pwmfunction gpd_win_mini_set_pwm_enablefunction gpd_duo_set_pwm_enablefunction gpd_wm2_set_pwm_enablefunction gpd_set_pwm_enablefunction gpd_fan_hwmon_is_visiblefunction gpd_fan_hwmon_readfunction gpd_fan_hwmon_writefunction gpd_win4_init_ecfunction gpd_init_ecfunction gpd_fan_reset_hardwarefunction gpd_fan_probefunction gpd_fan_initfunction gpd_fan_exitmodule init gpd_fan_init
Annotated Snippet
module_init(gpd_fan_init);
module_exit(gpd_fan_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Cryolitia PukNgae <cryolitia@uniontech.com>");
MODULE_DESCRIPTION("GPD Devices fan control driver");
Annotation
- Immediate include surface: `linux/dmi.h`, `linux/hwmon.h`, `linux/io.h`, `linux/ioport.h`, `linux/kernel.h`, `linux/module.h`, `linux/platform_device.h`.
- Detected declarations: `struct gpd_fan_data`, `struct gpd_fan_drvdata`, `enum gpd_board`, `enum FAN_PWM_ENABLE`, `function gpd_ecram_read`, `function gpd_ecram_write`, `function gpd_generic_read_rpm`, `function gpd_wm2_read_rpm`, `function gpd_read_rpm`, `function gpd_wm2_read_pwm`.
- Atlas domain: Driver Families / drivers/hwmon.
- 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.