drivers/edac/imh_base.c
Source file repositories/reference/linux-study-clean/drivers/edac/imh_base.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/edac/imh_base.c- Extension
.c- Size
- 15702 bytes
- Lines
- 632
- 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/kernel.hlinux/io.hasm/cpu_device_id.hasm/intel-family.hasm/mce.hasm/cpu.hedac_module.hskx_common.h
Detected Declarations
struct local_regfunction __read_local_regfunction read_local_regfunction get_imc_bitmapfunction imc_releasefunction __get_ddr_munitsfunction for_each_set_bitfunction get_ddr_munitsfunction get_socket_idfunction imh_get_tolm_tohmfunction imh_get_all_mmio_base_hfunction imh_get_imc_numfunction imh_get_munitsfunction list_for_each_entryfunction check_2lm_enabledfunction imh_2lm_enabledfunction list_for_each_entryfunction read_imc_mcmtrfunction read_imc_dimmmtrfunction ecc_enabledfunction dimm_populatedfunction imh_get_dimm_configfunction imh_register_mcifunction list_for_each_entryfunction imh_initfunction imh_exitmodule init imh_init
Annotated Snippet
module_init(imh_init);
module_exit(imh_exit);
module_param(retry_rd_err_log, int, 0444);
MODULE_PARM_DESC(retry_rd_err_log, "retry_rd_err_log: 0=off(default), 1=bios(Linux doesn't reset any control bits, but just reports values.), 2=linux(Linux tries to take control and resets mode bits, clear valid/UC bits after reading.)");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Qiuxu Zhuo");
MODULE_DESCRIPTION("MC Driver for Intel servers using IMH-based memory controller");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/io.h`, `asm/cpu_device_id.h`, `asm/intel-family.h`, `asm/mce.h`, `asm/cpu.h`, `edac_module.h`, `skx_common.h`.
- Detected declarations: `struct local_reg`, `function __read_local_reg`, `function read_local_reg`, `function get_imc_bitmap`, `function imc_release`, `function __get_ddr_munits`, `function for_each_set_bit`, `function get_ddr_munits`, `function get_socket_id`, `function imh_get_tolm_tohm`.
- 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.