drivers/hwmon/w83627hf.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/w83627hf.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/w83627hf.c- Extension
.c- Size
- 56523 bytes
- Lines
- 2008
- 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/ioport.hlinux/acpi.hlinux/io.hlm75.h
Detected Declarations
struct w83627hf_sio_datastruct w83627hf_dataenum chipsfunction superio_outbfunction superio_inbfunction superio_selectfunction superio_enterfunction superio_exitfunction FAN_TO_REGfunction TEMP_TO_REGfunction TEMP_FROM_REGfunction pwm_freq_from_reg_627hffunction pwm_freq_to_reg_627hffunction pwm_freq_from_regfunction pwm_freq_to_regfunction DIV_TO_REGfunction w83627hf_set_bankfunction w83627hf_reset_bankfunction w83627hf_read_valuefunction w83627hf_write_valuefunction w83627hf_update_fan_divfunction w83627hf_suspendfunction w83627hf_resumefunction w83627thf_read_gpio5function w83687thf_read_vidfunction w83627hf_init_devicefunction show_in_0function in0_input_showfunction in0_min_showfunction in0_min_storefunction in0_max_showfunction in0_max_storefunction alarm_showfunction beep_showfunction beep_storefunction in_input_showfunction in_min_showfunction in_min_storefunction in_max_showfunction in_max_storefunction fan_input_showfunction fan_min_showfunction fan_min_storefunction fan_div_showfunction fan_div_storefunction temp_showfunction temp_max_showfunction temp_max_store
Annotated Snippet
module_init(sensors_w83627hf_init);
module_exit(sensors_w83627hf_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 w83627hf_sio_data`, `struct w83627hf_data`, `enum chips`, `function superio_outb`, `function superio_inb`, `function superio_select`, `function superio_enter`, `function superio_exit`, `function FAN_TO_REG`, `function TEMP_TO_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.