drivers/macintosh/windfarm_pm121.c
Source file repositories/reference/linux-study-clean/drivers/macintosh/windfarm_pm121.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/macintosh/windfarm_pm121.c- Extension
.c- Size
- 25550 bytes
- Lines
- 1042
- 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/errno.hlinux/kernel.hlinux/delay.hlinux/slab.hlinux/init.hlinux/spinlock.hlinux/wait.hlinux/kmod.hlinux/device.hlinux/platform_device.hlinux/of.hasm/machdep.hasm/io.hasm/sections.hasm/smu.hwindfarm.hwindfarm_pid.h
Detected Declarations
struct pm121_correctionstruct pm121_connectionstruct pm121_sys_paramstruct pm121_sys_statestruct pm121_cpu_statefunction pm121_correctfunction pm121_connectfunction pm121_create_sys_fansfunction pm121_sys_fans_tickfunction pm121_create_cpu_fansfunction pm121_cpu_fans_tickfunction pm121_tickfunction conditionfunction pm121_register_controlfunction pm121_new_controlfunction pm121_register_sensorfunction pm121_new_sensorfunction pm121_notifyfunction pm121_init_pmfunction pm121_probefunction pm121_removefunction pm121_initfunction pm121_exitmodule init pm121_init
Annotated Snippet
module_init(pm121_init);
module_exit(pm121_exit);
MODULE_AUTHOR("Étienne Bersac <bersace@gmail.com>");
MODULE_DESCRIPTION("Thermal control logic for iMac G5 (iSight)");
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/spinlock.h`, `linux/wait.h`.
- Detected declarations: `struct pm121_correction`, `struct pm121_connection`, `struct pm121_sys_param`, `struct pm121_sys_state`, `struct pm121_cpu_state`, `function pm121_correct`, `function pm121_connect`, `function pm121_create_sys_fans`, `function pm121_sys_fans_tick`, `function pm121_create_cpu_fans`.
- 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.