drivers/platform/x86/intel_ips.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/intel_ips.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/intel_ips.c- Extension
.c- Size
- 42806 bytes
- Lines
- 1625
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/debugfs.hlinux/delay.hlinux/interrupt.hlinux/kernel.hlinux/kthread.hlinux/module.hlinux/pci.hlinux/sched.hlinux/sched/loadavg.hlinux/seq_file.hlinux/string.hlinux/tick.hlinux/timer.hlinux/dmi.hdrm/intel/i915_drm.hasm/msr.hasm/processor.hasm/cpu_device_id.hintel_ips.hlinux/io-64-nonatomic-lo-hi.h
Detected Declarations
struct ips_mcp_limitsstruct ips_driverfunction ips_cpu_busyfunction upwardsfunction allowfunction on_each_cpufunction ips_enable_cpu_turbofunction on_each_cpufunction ips_disable_cpu_turbofunction ips_gpu_busyfunction ips_gpu_raisefunction ips_gpu_lowerfunction ips_enable_gpu_turbofunction ips_disable_gpu_turbofunction mcp_exceededfunction cpu_exceededfunction mch_exceededfunction verify_limitsfunction updatesfunction ips_adjustfunction calc_avg_tempfunction read_mgtvfunction read_ptvfunction read_ctvfunction get_cpu_powerfunction update_average_tempfunction update_average_powerfunction calc_avg_powerfunction monitor_timeoutfunction ips_monitorfunction ips_irq_handlerfunction ips_debugfs_initfunction ips_debugfs_cleanupfunction cpu_temp_showfunction cpu_power_showfunction cpu_clamp_showfunction mch_temp_showfunction mch_power_showfunction ips_debugfs_cleanupfunction ips_debugfs_initfunction ips_get_i915_symsfunction ips_gpu_turbo_enabledfunction ips_link_to_i915_driverfunction ips_blacklist_callbackfunction ips_probefunction ips_removeexport ips_link_to_i915_driver
Annotated Snippet
static struct pci_driver ips_pci_driver = {
.name = "intel ips",
.id_table = ips_id_table,
.probe = ips_probe,
.remove = ips_remove,
};
module_pci_driver(ips_pci_driver);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Jesse Barnes <jbarnes@virtuousgeek.org>");
MODULE_DESCRIPTION("Intelligent Power Sharing Driver");
Annotation
- Immediate include surface: `linux/debugfs.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/kernel.h`, `linux/kthread.h`, `linux/module.h`, `linux/pci.h`, `linux/sched.h`.
- Detected declarations: `struct ips_mcp_limits`, `struct ips_driver`, `function ips_cpu_busy`, `function upwards`, `function allow`, `function on_each_cpu`, `function ips_enable_cpu_turbo`, `function on_each_cpu`, `function ips_disable_cpu_turbo`, `function ips_gpu_busy`.
- Atlas domain: Driver Families / drivers/platform.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.