drivers/hwmon/dme1737.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/dme1737.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/dme1737.c- Extension
.c- Size
- 79223 bytes
- Lines
- 2784
- 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/platform_device.hlinux/hwmon.hlinux/hwmon-sysfs.hlinux/hwmon-vid.hlinux/err.hlinux/mutex.hlinux/acpi.hlinux/io.h
Detected Declarations
struct dme1737_dataenum chipsfunction IN_FROM_REGfunction IN_TO_REGfunction TEMP_FROM_REGfunction TEMP_TO_REGfunction TEMP_RANGE_FROM_REGfunction TEMP_RANGE_TO_REGfunction TEMP_HYST_FROM_REGfunction TEMP_HYST_TO_REGfunction FAN_FROM_REGfunction FAN_TO_REGfunction TPCfunction FAN_TYPE_FROM_REGfunction FAN_TYPE_TO_REGfunction FAN_MAX_FROM_REGfunction FAN_MAX_TO_REGfunction PWM_EN_FROM_REGfunction PWM_EN_TO_REGfunction mappingfunction PWM_ACZ_TO_REGfunction PWM_FREQ_FROM_REGfunction PWM_FREQ_TO_REGfunction PWM_RR_FROM_REGfunction PWM_RR_TO_REGfunction PWM_RR_EN_FROM_REGfunction PWM_RR_EN_TO_REGfunction PWM_OFF_FROM_REGfunction PWM_OFF_TO_REGfunction runtimefunction dme1737_writefunction show_infunction set_infunction show_tempfunction set_tempfunction show_zonefunction set_zonefunction show_fanfunction set_fanfunction show_pwmfunction set_pwmfunction vrm_showfunction vrm_storefunction cpu0_vid_showfunction name_showfunction dme1737_sio_enterfunction dme1737_sio_exitfunction dme1737_sio_inb
Annotated Snippet
module_init(dme1737_init);
module_exit(dme1737_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/slab.h`, `linux/jiffies.h`, `linux/i2c.h`, `linux/platform_device.h`, `linux/hwmon.h`, `linux/hwmon-sysfs.h`.
- Detected declarations: `struct dme1737_data`, `enum chips`, `function IN_FROM_REG`, `function IN_TO_REG`, `function TEMP_FROM_REG`, `function TEMP_TO_REG`, `function TEMP_RANGE_FROM_REG`, `function TEMP_RANGE_TO_REG`, `function TEMP_HYST_FROM_REG`, `function TEMP_HYST_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.