drivers/platform/x86/intel/tpmi_power_domains.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/intel/tpmi_power_domains.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/intel/tpmi_power_domains.c- Extension
.c- Size
- 6442 bytes
- Lines
- 266
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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/bitfield.hlinux/cleanup.hlinux/cpuhotplug.hlinux/cpumask.hlinux/errno.hlinux/export.hlinux/hashtable.hlinux/module.hlinux/mutex.hlinux/overflow.hlinux/slab.hlinux/topology.hlinux/types.hasm/cpu_device_id.hasm/intel-family.hasm/msr.htpmi_power_domains.h
Detected Declarations
struct tpmi_cpu_infofunction tpmi_domain_is_validfunction tpmi_get_linux_cpu_numberfunction tpmi_get_punit_core_numberfunction tpmi_get_power_domain_idfunction tpmi_get_linux_die_idfunction tpmi_get_logical_idfunction tpmi_cpu_onlinefunction tpmi_initfunction tpmi_exitmodule init tpmi_init
Annotated Snippet
module_init(tpmi_init)
static void __exit tpmi_exit(void)
{
cpuhp_remove_state(tpmi_hp_state);
kfree(tpmi_power_domain_mask);
kfree(domain_die_map);
}
module_exit(tpmi_exit)
MODULE_DESCRIPTION("TPMI Power Domains Mapping");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/cleanup.h`, `linux/cpuhotplug.h`, `linux/cpumask.h`, `linux/errno.h`, `linux/export.h`, `linux/hashtable.h`, `linux/module.h`.
- Detected declarations: `struct tpmi_cpu_info`, `function tpmi_domain_is_valid`, `function tpmi_get_linux_cpu_number`, `function tpmi_get_punit_core_number`, `function tpmi_get_power_domain_id`, `function tpmi_get_linux_die_id`, `function tpmi_get_logical_id`, `function tpmi_cpu_online`, `function tpmi_init`, `function tpmi_exit`.
- Atlas domain: Driver Families / drivers/platform.
- 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.