drivers/hwmon/f71882fg.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/f71882fg.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/f71882fg.c- Extension
.c- Size
- 81907 bytes
- Lines
- 2707
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/module.hlinux/init.hlinux/slab.hlinux/jiffies.hlinux/platform_device.hlinux/hwmon.hlinux/hwmon-sysfs.hlinux/err.hlinux/mutex.hlinux/io.hlinux/acpi.h
Detected Declarations
struct f71882fg_sio_datastruct f71882fg_dataenum chipsfunction f71882fg_read8function f71882fg_read16function fan_from_regfunction fan_to_regfunction f71882fg_write8function f71882fg_write16function f71882fg_read_tempfunction name_showfunction show_tempfunction show_temp_maxfunction store_temp_maxfunction show_temp_max_hystfunction store_temp_max_hystfunction show_temp_alarmfunction show_temp_critfunction store_temp_critfunction show_temp_crit_hystfunction show_temp_faultfunction show_temp_typefunction show_temp_beepfunction store_temp_beepfunction show_infunction show_in_maxfunction store_in_maxfunction show_in_beepfunction store_in_beepfunction show_in_alarmfunction show_fanfunction show_fan_full_speedfunction store_fan_full_speedfunction show_fan_alarmfunction show_pwmfunction store_pwmfunction show_pwm_enablefunction store_pwm_enablefunction show_pwm_interpolatefunction store_pwm_interpolatefunction show_simple_pwmfunction store_simple_pwmfunction show_fan_beepfunction store_fan_beepfunction show_pwm_auto_point_channelfunction store_pwm_auto_point_channelfunction show_pwm_auto_point_pwmfunction store_pwm_auto_point_pwm
Annotated Snippet
module_init(f71882fg_init);
module_exit(f71882fg_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/slab.h`, `linux/jiffies.h`, `linux/platform_device.h`, `linux/hwmon.h`, `linux/hwmon-sysfs.h`, `linux/err.h`.
- Detected declarations: `struct f71882fg_sio_data`, `struct f71882fg_data`, `enum chips`, `function f71882fg_read8`, `function f71882fg_read16`, `function fan_from_reg`, `function fan_to_reg`, `function f71882fg_write8`, `function f71882fg_write16`, `function f71882fg_read_temp`.
- Atlas domain: Driver Families / drivers/hwmon.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.