drivers/macintosh/windfarm_ad7417_sensor.c
Source file repositories/reference/linux-study-clean/drivers/macintosh/windfarm_ad7417_sensor.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/macintosh/windfarm_ad7417_sensor.c- Extension
.c- Size
- 7833 bytes
- Lines
- 351
- 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.
- 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/types.hlinux/errno.hlinux/kernel.hlinux/delay.hlinux/slab.hlinux/init.hlinux/wait.hlinux/i2c.hasm/machdep.hasm/io.hasm/sections.hwindfarm.hwindfarm_mpu.h
Detected Declarations
struct wf_ad7417_privfunction wf_ad7417_temp_getfunction convertersfunction wf_ad7417_adc_getfunction wf_ad7417_releasefunction wf_ad7417_sensor_releasefunction wf_ad7417_add_sensorfunction wf_ad7417_init_chipfunction wf_ad7417_probefunction wf_ad7417_removefunction wf_ad7417_initfunction wf_ad7417_exitmodule init wf_ad7417_init
Annotated Snippet
module_init(wf_ad7417_init);
module_exit(wf_ad7417_exit);
MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>");
MODULE_DESCRIPTION("ad7417 sensor driver for PowerMacs");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/types.h`, `linux/errno.h`, `linux/kernel.h`, `linux/delay.h`, `linux/slab.h`, `linux/init.h`, `linux/wait.h`, `linux/i2c.h`.
- Detected declarations: `struct wf_ad7417_priv`, `function wf_ad7417_temp_get`, `function converters`, `function wf_ad7417_adc_get`, `function wf_ad7417_release`, `function wf_ad7417_sensor_release`, `function wf_ad7417_add_sensor`, `function wf_ad7417_init_chip`, `function wf_ad7417_probe`, `function wf_ad7417_remove`.
- Atlas domain: Driver Families / drivers/macintosh.
- 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.