drivers/acpi/thermal.c
Source file repositories/reference/linux-study-clean/drivers/acpi/thermal.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/acpi/thermal.c- Extension
.c- Size
- 26639 bytes
- Lines
- 1054
- Domain
- Driver Families
- Bucket
- drivers/acpi
- 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/kernel.hlinux/module.hlinux/dmi.hlinux/init.hlinux/slab.hlinux/types.hlinux/jiffies.hlinux/kmod.hlinux/reboot.hlinux/device.hlinux/platform_device.hlinux/thermal.hlinux/acpi.hlinux/workqueue.hlinux/uaccess.hlinux/units.hinternal.h
Detected Declarations
struct acpi_thermal_tripstruct acpi_thermal_passivestruct acpi_thermal_activestruct acpi_thermal_tripsstruct acpi_thermalstruct adjust_trip_datafunction acpi_thermal_get_temperaturefunction acpi_thermal_get_polling_frequencyfunction acpi_thermal_tempfunction acpi_thermal_trip_validfunction active_trip_indexfunction get_passive_tempfunction get_active_tempfunction acpi_thermal_update_tripfunction update_trip_devicesfunction acpi_thermal_update_trip_devicesfunction acpi_thermal_adjust_tripfunction acpi_queue_thermal_checkfunction acpi_thermal_trips_updatefunction acpi_thermal_get_critical_tripfunction acpi_thermal_get_hot_tripfunction passive_trip_params_initfunction acpi_thermal_init_tripfunction acpi_thermal_get_trip_pointsfunction thermal_get_tempfunction thermal_get_trendfunction acpi_thermal_zone_device_hotfunction acpi_thermal_zone_device_criticalfunction acpi_thermal_should_bind_cdevfunction acpi_thermal_zone_sysfs_addfunction acpi_thermal_zone_sysfs_removefunction acpi_thermal_register_thermal_zonefunction acpi_thermal_zone_unregisterfunction acpi_thermal_notifyfunction acpi_thermal_aml_dependency_fixfunction acpi_thermal_guess_offsetfunction acpi_thermal_check_fnfunction acpi_thermal_zone_freefunction acpi_thermal_probefunction acpi_thermal_preparefunction acpi_thermal_completefunction thermal_actfunction thermal_nocrtfunction thermal_tzpfunction thermal_psvfunction acpi_thermal_initfunction acpi_thermal_exitmodule init acpi_thermal_init
Annotated Snippet
module_init(acpi_thermal_init);
module_exit(acpi_thermal_exit);
MODULE_IMPORT_NS("ACPI_THERMAL");
MODULE_AUTHOR("Paul Diefenbaugh");
MODULE_DESCRIPTION("ACPI Thermal Zone Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/dmi.h`, `linux/init.h`, `linux/slab.h`, `linux/types.h`, `linux/jiffies.h`, `linux/kmod.h`.
- Detected declarations: `struct acpi_thermal_trip`, `struct acpi_thermal_passive`, `struct acpi_thermal_active`, `struct acpi_thermal_trips`, `struct acpi_thermal`, `struct adjust_trip_data`, `function acpi_thermal_get_temperature`, `function acpi_thermal_get_polling_frequency`, `function acpi_thermal_temp`, `function acpi_thermal_trip_valid`.
- Atlas domain: Driver Families / drivers/acpi.
- 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.