drivers/macintosh/windfarm_pm91.c
Source file repositories/reference/linux-study-clean/drivers/macintosh/windfarm_pm91.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/macintosh/windfarm_pm91.c- Extension
.c- Size
- 18379 bytes
- Lines
- 738
- 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 wf_smu_cpu_fans_statestruct wf_smu_drive_fans_statestruct wf_smu_slots_fans_statefunction wf_smu_create_cpu_fansfunction wf_smu_cpu_fans_tickfunction wf_smu_create_drive_fansfunction wf_smu_drive_fans_tickfunction wf_smu_create_slots_fansfunction wf_smu_slots_fans_tickfunction wf_smu_tickfunction conditionfunction wf_smu_new_controlfunction wf_smu_new_sensorfunction wf_smu_notifyfunction wf_init_pmfunction wf_smu_probefunction wf_smu_removefunction wf_smu_initfunction wf_smu_exitmodule init wf_smu_init
Annotated Snippet
module_init(wf_smu_init);
module_exit(wf_smu_exit);
MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>");
MODULE_DESCRIPTION("Thermal control logic for PowerMac9,1");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:windfarm");
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 wf_smu_cpu_fans_state`, `struct wf_smu_drive_fans_state`, `struct wf_smu_slots_fans_state`, `function wf_smu_create_cpu_fans`, `function wf_smu_cpu_fans_tick`, `function wf_smu_create_drive_fans`, `function wf_smu_drive_fans_tick`, `function wf_smu_create_slots_fans`, `function wf_smu_slots_fans_tick`, `function wf_smu_tick`.
- 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.