drivers/edac/e7xxx_edac.c
Source file repositories/reference/linux-study-clean/drivers/edac/e7xxx_edac.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/edac/e7xxx_edac.c- Extension
.c- Size
- 16421 bytes
- Lines
- 603
- Domain
- Driver Families
- Bucket
- drivers/edac
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/init.hlinux/pci.hlinux/pci_ids.hlinux/edac.hedac_module.h
Detected Declarations
struct e7xxx_pvtstruct e7xxx_dev_infostruct e7xxx_error_infoenum e7xxx_chipsfunction e7xxx_find_channelfunction ctl_page_to_physfunction process_cefunction process_ce_no_infofunction process_uefunction process_ue_no_infofunction e7xxx_get_error_infofunction e7xxx_process_error_infofunction e7xxx_checkfunction dual_channel_activefunction drb_granularityfunction e7xxx_init_csrowsfunction e7xxx_probe1function e7xxx_init_onefunction e7xxx_remove_onefunction e7xxx_initfunction e7xxx_exitmodule init e7xxx_init
Annotated Snippet
static struct pci_driver e7xxx_driver = {
.name = EDAC_MOD_STR,
.probe = e7xxx_init_one,
.remove = e7xxx_remove_one,
.id_table = e7xxx_pci_tbl,
};
static int __init e7xxx_init(void)
{
/* Ensure that the OPSTATE is set correctly for POLL or NMI */
opstate_init();
return pci_register_driver(&e7xxx_driver);
}
static void __exit e7xxx_exit(void)
{
pci_unregister_driver(&e7xxx_driver);
}
module_init(e7xxx_init);
module_exit(e7xxx_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Linux Networx (http://lnxi.com) Thayne Harbaugh et al");
MODULE_DESCRIPTION("MC support for Intel e7xxx memory controllers");
module_param(edac_op_state, int, 0444);
MODULE_PARM_DESC(edac_op_state, "EDAC Error Reporting state: 0=Poll,1=NMI");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/pci.h`, `linux/pci_ids.h`, `linux/edac.h`, `edac_module.h`.
- Detected declarations: `struct e7xxx_pvt`, `struct e7xxx_dev_info`, `struct e7xxx_error_info`, `enum e7xxx_chips`, `function e7xxx_find_channel`, `function ctl_page_to_phys`, `function process_ce`, `function process_ce_no_info`, `function process_ue`, `function process_ue_no_info`.
- Atlas domain: Driver Families / drivers/edac.
- Implementation status: pattern 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.