drivers/hwmon/w83627ehf.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/w83627ehf.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/w83627ehf.c- Extension
.c- Size
- 61492 bytes
- Lines
- 2164
- 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/hwmon-vid.hlinux/err.hlinux/mutex.hlinux/acpi.hlinux/io.hlm75.h
Detected Declarations
struct w83627ehf_datastruct w83627ehf_sio_dataenum kindsfunction superio_outbfunction superio_inbfunction superio_selectfunction superio_enterfunction superio_exitfunction is_word_sizedfunction step_time_from_regfunction step_time_to_regfunction fan_from_reg8function div_from_regfunction in_from_regfunction in_to_regfunction w83627ehf_set_bankfunction w83627ehf_read_valuefunction w83627ehf_write_valuefunction w83627ehf_read_tempfunction w83627ehf_write_tempfunction w83627ehf_write_fan_divfunction w83627ehf_update_fan_divfunction w83627ehf_update_pwmfunction store_fan_minfunction dividerfunction store_temp_offsetfunction store_pwm_modefunction store_pwmfunction store_pwm_enablefunction store_target_tempfunction store_tolerancefunction cpu0_vid_showfunction clear_caseopenfunction w83627ehf_attrs_visiblefunction w83627ehf_init_devicefunction w83627ehf_set_temp_reg_ehffunction w83627ehf_check_fan_inputsfunction w83627ehf_is_visiblefunction w83627ehf_do_read_tempfunction w83627ehf_do_read_infunction w83627ehf_do_read_fanfunction w83627ehf_do_read_pwmfunction w83627ehf_do_read_intrusionfunction w83627ehf_readfunction w83627ehf_read_stringfunction w83627ehf_writefunction w83627ehf_probefunction w83627ehf_suspend
Annotated Snippet
module_init(sensors_w83627ehf_init);
module_exit(sensors_w83627ehf_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/hwmon-vid.h`.
- Detected declarations: `struct w83627ehf_data`, `struct w83627ehf_sio_data`, `enum kinds`, `function superio_outb`, `function superio_inb`, `function superio_select`, `function superio_enter`, `function superio_exit`, `function is_word_sized`, `function step_time_from_reg`.
- 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.