drivers/platform/x86/intel/pmt/crashlog.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/intel/pmt/crashlog.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/intel/pmt/crashlog.c- Extension
.c- Size
- 15233 bytes
- Lines
- 615
- 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/auxiliary_bus.hlinux/cleanup.hlinux/intel_vsec.hlinux/kernel.hlinux/module.hlinux/mutex.hlinux/pci.hlinux/slab.hlinux/uaccess.hlinux/overflow.hclass.h
Detected Declarations
struct crashlog_statusstruct crashlog_controlstruct crashlog_infostruct crashlog_entrystruct pmt_crashlog_privfunction pmt_crashlog_rmwfunction pmt_crashlog_rcfunction pmt_crashlog_completefunction pmt_crashlog_disabledfunction pmt_crashlog_supportedfunction pmt_crashlog_set_disablefunction pmt_crashlog_set_clearfunction pmt_crashlog_set_executefunction pmt_crashlog_clearedfunction pmt_crashlog_consumedfunction pmt_crashlog_set_consumedfunction pmt_crashlog_errorfunction pmt_crashlog_rearmfunction pmt_crashlog_set_rearmfunction clear_showfunction clear_storefunction consumed_showfunction consumed_storefunction enable_showfunction enable_storefunction error_showfunction rearm_showfunction rearm_storefunction trigger_showfunction trigger_storefunction pmt_crashlog_header_decodefunction pmt_crashlog_removefunction pmt_crashlog_probefunction pmt_crashlog_initfunction pmt_crashlog_exitmodule init pmt_crashlog_init
Annotated Snippet
module_init(pmt_crashlog_init);
module_exit(pmt_crashlog_exit);
MODULE_AUTHOR("Alexander Duyck <alexander.h.duyck@linux.intel.com>");
MODULE_DESCRIPTION("Intel PMT Crashlog driver");
MODULE_LICENSE("GPL v2");
MODULE_IMPORT_NS("INTEL_PMT");
Annotation
- Immediate include surface: `linux/auxiliary_bus.h`, `linux/cleanup.h`, `linux/intel_vsec.h`, `linux/kernel.h`, `linux/module.h`, `linux/mutex.h`, `linux/pci.h`, `linux/slab.h`.
- Detected declarations: `struct crashlog_status`, `struct crashlog_control`, `struct crashlog_info`, `struct crashlog_entry`, `struct pmt_crashlog_priv`, `function pmt_crashlog_rmw`, `function pmt_crashlog_rc`, `function pmt_crashlog_complete`, `function pmt_crashlog_disabled`, `function pmt_crashlog_supported`.
- 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.