drivers/hwmon/it87.c
Source file repositories/reference/linux-study-clean/drivers/hwmon/it87.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwmon/it87.c- Extension
.c- Size
- 115228 bytes
- Lines
- 3863
- 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/bitops.hlinux/module.hlinux/init.hlinux/slab.hlinux/jiffies.hlinux/platform_device.hlinux/hwmon.hlinux/hwmon-sysfs.hlinux/hwmon-vid.hlinux/err.hlinux/mutex.hlinux/sysfs.hlinux/string.hlinux/dmi.hlinux/acpi.hlinux/io.h
Detected Declarations
struct it87_devicesstruct it87_sio_datastruct it87_datastruct it87_dmi_dataenum chipsfunction __superio_enterfunction superio_inbfunction superio_outbfunction superio_inwfunction superio_selectfunction superio_enterfunction superio_exitfunction adc_lsbfunction in_to_regfunction in_from_regfunction FAN_TO_REGfunction FAN16_TO_REGfunction pwm_to_regfunction pwm_from_regfunction DIV_TO_REGfunction smbus_disablefunction smbus_enablefunction it87_read_valuefunction it87_write_valuefunction it87_update_pwm_ctrlfunction it87_lockfunction it87_unlockfunction show_infunction set_infunction show_tempfunction set_tempfunction get_temp_typefunction show_temp_typefunction set_temp_typefunction pwm_modefunction show_fanfunction show_fan_divfunction show_pwm_enablefunction show_pwmfunction show_pwm_freqfunction set_fanfunction set_fan_divfunction check_trip_pointsfunction set_pwm_enablefunction set_pwmfunction set_pwm_freqfunction show_pwm_temp_mapfunction set_pwm_temp_map
Annotated Snippet
module_init(sm_it87_init);
module_exit(sm_it87_exit);
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/module.h`, `linux/init.h`, `linux/slab.h`, `linux/jiffies.h`, `linux/platform_device.h`, `linux/hwmon.h`, `linux/hwmon-sysfs.h`.
- Detected declarations: `struct it87_devices`, `struct it87_sio_data`, `struct it87_data`, `struct it87_dmi_data`, `enum chips`, `function __superio_enter`, `function superio_inb`, `function superio_outb`, `function superio_inw`, `function superio_select`.
- 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.