drivers/edac/ghes_edac.c
Source file repositories/reference/linux-study-clean/drivers/edac/ghes_edac.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/edac/ghes_edac.c- Extension
.c- Size
- 12957 bytes
- Lines
- 575
- Domain
- Driver Families
- Bucket
- drivers/edac
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
acpi/ghes.hlinux/edac.hlinux/dmi.hedac_module.hras/ras_event.hlinux/notifier.hlinux/string.h
Detected Declarations
struct ghes_pvtstruct memdev_dmi_entryfunction mci_for_each_dimmfunction dimm_setup_labelfunction assign_dmi_dimm_infofunction enumerate_dimmsfunction ghes_scan_systemfunction print_mem_error_other_detailfunction ghes_edac_report_mem_errorfunction ghes_edac_registerfunction mci_for_each_dimmfunction ghes_edac_unregisterfunction ghes_edac_initfunction list_for_each_entry_safefunction ghes_edac_exitfunction list_for_each_entry_safemodule init ghes_edac_init
Annotated Snippet
module_init(ghes_edac_init);
static void __exit ghes_edac_exit(void)
{
struct ghes *g, *g_tmp;
list_for_each_entry_safe(g, g_tmp, ghes_devs, elist) {
ghes_edac_unregister(g);
}
}
module_exit(ghes_edac_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Output ACPI APEI/GHES BIOS detected errors via EDAC");
Annotation
- Immediate include surface: `acpi/ghes.h`, `linux/edac.h`, `linux/dmi.h`, `edac_module.h`, `ras/ras_event.h`, `linux/notifier.h`, `linux/string.h`.
- Detected declarations: `struct ghes_pvt`, `struct memdev_dmi_entry`, `function mci_for_each_dimm`, `function dimm_setup_label`, `function assign_dmi_dimm_info`, `function enumerate_dimms`, `function ghes_scan_system`, `function print_mem_error_other_detail`, `function ghes_edac_report_mem_error`, `function ghes_edac_register`.
- Atlas domain: Driver Families / drivers/edac.
- 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.