drivers/platform/x86/intel/pmt/telemetry.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/intel/pmt/telemetry.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/intel/pmt/telemetry.c- Extension
.c- Size
- 10691 bytes
- Lines
- 444
- 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.
- 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/auxiliary_bus.hlinux/bitops.hlinux/cleanup.hlinux/err.hlinux/intel_pmt_features.hlinux/intel_vsec.hlinux/kernel.hlinux/kref.hlinux/module.hlinux/mutex.hlinux/overflow.hlinux/pci.hlinux/slab.hlinux/types.hlinux/uaccess.hlinux/xarray.hclass.h
Detected Declarations
struct pmt_telem_privenum telem_typefunction pmt_telem_region_overlapsfunction pmt_telem_header_decodefunction pmt_telem_add_endpointfunction pmt_telem_ep_releasefunction pmt_telem_get_next_endpointfunction pmt_telem_unregister_endpointfunction pmt_telem_get_endpoint_infofunction pmt_copy_regionfunction pmt_feature_group_releasefunction intel_pmt_put_feature_groupfunction pmt_telem_readfunction pmt_telem_read32function pmt_telem_find_and_register_endpointfunction pmt_telem_removefunction pmt_telem_probefunction pmt_telem_initfunction pmt_telem_exitmodule init pmt_telem_initexport intel_pmt_get_regions_by_featureexport intel_pmt_put_feature_group
Annotated Snippet
module_init(pmt_telem_init);
static void __exit pmt_telem_exit(void)
{
auxiliary_driver_unregister(&pmt_telem_aux_driver);
xa_destroy(&telem_array);
}
module_exit(pmt_telem_exit);
MODULE_AUTHOR("David E. Box <david.e.box@linux.intel.com>");
MODULE_DESCRIPTION("Intel PMT Telemetry driver");
MODULE_LICENSE("GPL v2");
MODULE_IMPORT_NS("INTEL_PMT");
MODULE_IMPORT_NS("INTEL_VSEC");
Annotation
- Immediate include surface: `linux/auxiliary_bus.h`, `linux/bitops.h`, `linux/cleanup.h`, `linux/err.h`, `linux/intel_pmt_features.h`, `linux/intel_vsec.h`, `linux/kernel.h`, `linux/kref.h`.
- Detected declarations: `struct pmt_telem_priv`, `enum telem_type`, `function pmt_telem_region_overlaps`, `function pmt_telem_header_decode`, `function pmt_telem_add_endpoint`, `function pmt_telem_ep_release`, `function pmt_telem_get_next_endpoint`, `function pmt_telem_unregister_endpoint`, `function pmt_telem_get_endpoint_info`, `function pmt_copy_region`.
- Atlas domain: Driver Families / drivers/platform.
- 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.