drivers/edac/amd64_edac.c
Source file repositories/reference/linux-study-clean/drivers/edac/amd64_edac.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/edac/amd64_edac.c- Extension
.c- Size
- 107804 bytes
- Lines
- 4237
- 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.
- 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/ras.hlinux/string_choices.hamd64_edac.hasm/amd/nb.hasm/amd/node.h
Detected Declarations
function get_umc_regfunction __amd64_read_pci_cfg_dwordfunction __amd64_write_pci_cfg_dwordfunction f15h_select_dctfunction amd64_read_dct_pci_cfgfunction __set_scrub_ratefunction set_scrub_ratefunction get_scrub_ratefunction base_limit_matchfunction get_cs_base_and_maskfunction lowfunction input_addr_to_csrowfunction for_each_chip_selectfunction Registerfunction dram_hole_showfunction inject_section_showfunction inject_section_storefunction inject_word_showfunction inject_word_storefunction inject_ecc_vector_showfunction inject_ecc_vector_storefunction inject_read_storefunction inject_write_storefunction inj_is_visiblefunction addressesfunction num_node_interleave_bitsfunction dram_addr_to_input_addrfunction sys_addr_to_input_addrfunction error_address_to_page_and_offsetfunction Lowfunction gpu_get_node_mapfunction fixup_node_idfunction dct_determine_edac_capfunction umc_determine_edac_capfunction for_each_umcfunction dct_debug_display_dimm_sizesfunction debug_dump_dramcfg_lowfunction umc_get_cs_modefunction calculate_cs_sizefunction __addr_mask_to_cs_sizefunction umc_addr_mask_to_cs_sizefunction umc_debug_display_dimm_sizesfunction umc_dump_misc_regsfunction for_each_umcfunction dct_dump_misc_regsfunction dct_prep_chip_selectsfunction umc_prep_chip_selectsfunction for_each_umc
Annotated Snippet
module_init(amd64_edac_init);
module_exit(amd64_edac_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("SoftwareBitMaker: Doug Thompson, Dave Peterson, Thayne Harbaugh; AMD");
MODULE_DESCRIPTION("MC support for AMD64 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/ras.h`, `linux/string_choices.h`, `amd64_edac.h`, `asm/amd/nb.h`, `asm/amd/node.h`.
- Detected declarations: `function get_umc_reg`, `function __amd64_read_pci_cfg_dword`, `function __amd64_write_pci_cfg_dword`, `function f15h_select_dct`, `function amd64_read_dct_pci_cfg`, `function __set_scrub_rate`, `function set_scrub_rate`, `function get_scrub_rate`, `function base_limit_match`, `function get_cs_base_and_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.