drivers/macintosh/therm_adt746x.c
Source file repositories/reference/linux-study-clean/drivers/macintosh/therm_adt746x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/macintosh/therm_adt746x.c- Extension
.c- Size
- 16748 bytes
- Lines
- 624
- Domain
- Driver Families
- Bucket
- drivers/macintosh
- 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.
- 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/types.hlinux/module.hlinux/errno.hlinux/kernel.hlinux/delay.hlinux/sched.hlinux/i2c.hlinux/slab.hlinux/init.hlinux/spinlock.hlinux/wait.hlinux/suspend.hlinux/kthread.hlinux/moduleparam.hlinux/freezer.hlinux/of.hlinux/of_platform.hlinux/platform_device.hasm/machdep.hasm/io.hasm/sections.h
Detected Declarations
struct thermostatfunction write_regfunction read_regfunction read_fan_speedfunction write_both_fan_speedfunction write_fan_speedfunction read_sensorsfunction display_statsfunction update_fans_speedfunction coldfunction monitor_taskfunction set_limitfunction thermostat_create_filesfunction thermostat_remove_filesfunction probe_thermostatfunction remove_thermostatfunction thermostat_initfunction thermostat_exitmodule init thermostat_init
Annotated Snippet
module_init(thermostat_init);
module_exit(thermostat_exit);
Annotation
- Immediate include surface: `linux/types.h`, `linux/module.h`, `linux/errno.h`, `linux/kernel.h`, `linux/delay.h`, `linux/sched.h`, `linux/i2c.h`, `linux/slab.h`.
- Detected declarations: `struct thermostat`, `function write_reg`, `function read_reg`, `function read_fan_speed`, `function write_both_fan_speed`, `function write_fan_speed`, `function read_sensors`, `function display_stats`, `function update_fans_speed`, `function cold`.
- Atlas domain: Driver Families / drivers/macintosh.
- Implementation status: integration implementation candidate.
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.