drivers/thermal/intel/intel_pch_thermal.c
Source file repositories/reference/linux-study-clean/drivers/thermal/intel/intel_pch_thermal.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/thermal/intel/intel_pch_thermal.c- Extension
.c- Size
- 12381 bytes
- Lines
- 408
- Domain
- Driver Families
- Bucket
- drivers/thermal
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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/acpi.hlinux/delay.hlinux/module.hlinux/init.hlinux/pci.hlinux/pm.hlinux/suspend.hlinux/thermal.hlinux/types.hlinux/units.h
Detected Declarations
struct pch_thermal_deviceenum pch_board_idsfunction pch_wpt_add_acpi_psv_tripfunction pch_wpt_add_acpi_psv_tripfunction pch_thermal_get_tempfunction pch_criticalfunction intel_pch_thermal_probefunction intel_pch_thermal_removefunction intel_pch_thermal_suspend_noirqfunction intel_pch_thermal_resume
Annotated Snippet
static struct pci_driver intel_pch_thermal_driver = {
.name = "intel_pch_thermal",
.id_table = intel_pch_thermal_id,
.probe = intel_pch_thermal_probe,
.remove = intel_pch_thermal_remove,
.driver.pm = &intel_pch_pm_ops,
};
module_pci_driver(intel_pch_thermal_driver);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Intel PCH Thermal driver");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/delay.h`, `linux/module.h`, `linux/init.h`, `linux/pci.h`, `linux/pm.h`, `linux/suspend.h`, `linux/thermal.h`.
- Detected declarations: `struct pch_thermal_device`, `enum pch_board_ids`, `function pch_wpt_add_acpi_psv_trip`, `function pch_wpt_add_acpi_psv_trip`, `function pch_thermal_get_temp`, `function pch_critical`, `function intel_pch_thermal_probe`, `function intel_pch_thermal_remove`, `function intel_pch_thermal_suspend_noirq`, `function intel_pch_thermal_resume`.
- Atlas domain: Driver Families / drivers/thermal.
- Implementation status: pattern 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.