drivers/macintosh/windfarm_core.c
Source file repositories/reference/linux-study-clean/drivers/macintosh/windfarm_core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/macintosh/windfarm_core.c- Extension
.c- Size
- 10483 bytes
- Lines
- 462
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/errno.hlinux/kernel.hlinux/slab.hlinux/init.hlinux/spinlock.hlinux/kthread.hlinux/jiffies.hlinux/reboot.hlinux/device.hlinux/platform_device.hlinux/mutex.hlinux/freezer.hwindfarm.h
Detected Declarations
function wf_notifyfunction wf_critical_overtempfunction wf_thread_funcfunction wf_start_threadfunction wf_stop_threadfunction wf_control_releasefunction wf_show_controlfunction wf_store_controlfunction wf_register_controlfunction wf_unregister_controlfunction wf_get_controlfunction wf_put_controlfunction wf_sensor_releasefunction wf_show_sensorfunction wf_register_sensorfunction wf_unregister_sensorfunction wf_get_sensorfunction wf_put_sensorfunction wf_register_clientfunction wf_unregister_clientfunction wf_set_overtempfunction wf_clear_overtempfunction windfarm_core_initfunction windfarm_core_exitmodule init windfarm_core_initexport wf_register_controlexport wf_unregister_controlexport wf_get_controlexport wf_put_controlexport wf_register_sensorexport wf_unregister_sensorexport wf_get_sensorexport wf_put_sensorexport wf_register_clientexport wf_unregister_clientexport wf_set_overtempexport wf_clear_overtemp
Annotated Snippet
module_init(windfarm_core_init);
module_exit(windfarm_core_exit);
MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>");
MODULE_DESCRIPTION("Core component of PowerMac thermal control");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/types.h`, `linux/errno.h`, `linux/kernel.h`, `linux/slab.h`, `linux/init.h`, `linux/spinlock.h`, `linux/kthread.h`, `linux/jiffies.h`.
- Detected declarations: `function wf_notify`, `function wf_critical_overtemp`, `function wf_thread_func`, `function wf_start_thread`, `function wf_stop_thread`, `function wf_control_release`, `function wf_show_control`, `function wf_store_control`, `function wf_register_control`, `function wf_unregister_control`.
- 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.