drivers/hwmon/w83781d.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/w83781d.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/w83781d.c- Extension
.c- Size
- 57563 bytes
- Lines
- 2092
- 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/i2c.hlinux/hwmon.hlinux/hwmon-vid.hlinux/hwmon-sysfs.hlinux/sysfs.hlinux/err.hlinux/mutex.hlinux/platform_device.hlinux/ioport.hlinux/io.hlm75.h
Detected Declarations
struct w83781d_dataenum chipsenum vendorfunction FAN_TO_REGfunction FAN_FROM_REGfunction DIV_TO_REGfunction store_fan_minfunction cpu0_vid_showfunction vrm_showfunction vrm_storefunction alarms_showfunction show_alarmfunction show_temp3_alarmfunction beep_mask_showfunction beep_mask_storefunction show_beepfunction store_beepfunction show_temp3_beepfunction show_fan_divfunction store_fan_divfunction show_pwmfunction pwm2_enable_showfunction store_pwmfunction pwm2_enable_storefunction show_sensorfunction store_sensorfunction w83781d_detect_subclientsfunction w83781d_create_filesfunction w83781d_detectfunction w83781d_remove_filesfunction w83781d_probefunction w83781d_removefunction w83781d_read_value_i2cfunction w83781d_write_value_i2cfunction w83781d_init_devicefunction name_showfunction w83781d_alias_detectfunction w83781d_read_value_isafunction w83781d_write_value_isafunction w83781d_read_valuefunction w83781d_write_valuefunction w83781d_isa_probefunction w83781d_isa_removefunction w83781d_isa_foundfunction w83781d_isa_device_addfunction w83781d_isa_registerfunction w83781d_isa_unregisterfunction w83781d_alias_detect
Annotated Snippet
module_init(sensors_w83781d_init);
module_exit(sensors_w83781d_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/slab.h`, `linux/jiffies.h`, `linux/i2c.h`, `linux/hwmon.h`, `linux/hwmon-vid.h`, `linux/hwmon-sysfs.h`.
- Detected declarations: `struct w83781d_data`, `enum chips`, `enum vendor`, `function FAN_TO_REG`, `function FAN_FROM_REG`, `function DIV_TO_REG`, `function store_fan_min`, `function cpu0_vid_show`, `function vrm_show`, `function vrm_store`.
- 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.