drivers/edac/pnd2_edac.c
Source file repositories/reference/linux-study-clean/drivers/edac/pnd2_edac.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/edac/pnd2_edac.c- Extension
.c- Size
- 43226 bytes
- Lines
- 1585
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bitmap.hlinux/delay.hlinux/edac.hlinux/init.hlinux/math64.hlinux/mmzone.hlinux/mod_devicetable.hlinux/module.hlinux/pci.hlinux/pci_ids.hlinux/sizes.hlinux/slab.hlinux/smp.hlinux/platform_data/x86/p2sb.hasm/cpu_device_id.hasm/intel-family.hasm/processor.hasm/mce.hedac_mc.hedac_module.hpnd2_edac.h
Detected Declarations
struct dram_addrstruct pnd2_pvtenum typefunction p2sb_is_busyfunction _apl_rd_regfunction apl_rd_regfunction get_mem_ctrl_hub_base_addrfunction dnv_rd_regfunction mk_regionfunction mk_region_maskfunction in_regionfunction gen_sym_maskfunction gen_asym_maskfunction apl_mk_regionfunction dnv_mk_regionfunction apl_get_registersfunction dnv_get_registersfunction get_registersfunction remove_mmio_gapfunction remove_addr_bitfunction hash_by_maskfunction sys2pmifunction bank_hashfunction rank_hashfunction apl_pmi2memfunction dnv_pmi2memfunction check_channelfunction apl_check_ecc_activefunction check_unitfunction dnv_check_ecc_activefunction get_memory_error_datafunction pnd2_mce_output_errorfunction ccccfunction apl_get_dimm_configfunction for_each_set_bitfunction dnv_get_dimm_configfunction pnd2_register_mcifunction pnd2_unregister_mcifunction pnd2_mce_check_errorfunction debugfs_u64_setfunction setup_pnd2_debugfunction teardown_pnd2_debugfunction setup_pnd2_debugfunction pnd2_removefunction pnd2_initfunction pnd2_exitmodule init pnd2_init
Annotated Snippet
module_init(pnd2_init);
module_exit(pnd2_exit);
module_param(edac_op_state, int, 0444);
MODULE_PARM_DESC(edac_op_state, "EDAC Error Reporting state: 0=Poll,1=NMI");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Tony Luck");
MODULE_DESCRIPTION("MC Driver for Intel SoC using Pondicherry memory controller");
Annotation
- Immediate include surface: `linux/bitmap.h`, `linux/delay.h`, `linux/edac.h`, `linux/init.h`, `linux/math64.h`, `linux/mmzone.h`, `linux/mod_devicetable.h`, `linux/module.h`.
- Detected declarations: `struct dram_addr`, `struct pnd2_pvt`, `enum type`, `function p2sb_is_busy`, `function _apl_rd_reg`, `function apl_rd_reg`, `function get_mem_ctrl_hub_base_addr`, `function dnv_rd_reg`, `function mk_region`, `function mk_region_mask`.
- Atlas domain: Driver Families / drivers/edac.
- 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.