drivers/edac/sb_edac.c
Source file repositories/reference/linux-study-clean/drivers/edac/sb_edac.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/edac/sb_edac.c- Extension
.c- Size
- 99647 bytes
- Lines
- 3681
- 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/module.hlinux/init.hlinux/pci.hlinux/pci_ids.hlinux/slab.hlinux/delay.hlinux/edac.hlinux/mmzone.hlinux/smp.hlinux/bitmap.hlinux/math64.hlinux/mod_devicetable.hasm/cpu_device_id.hasm/intel-family.hasm/processor.hasm/mce.hedac_module.h
Detected Declarations
struct interleave_pkgstruct sbridge_pvtstruct sbridge_infostruct sbridge_channelstruct dimmstruct pci_id_descrstruct pci_id_tablestruct sbridge_devstruct knl_pvtstruct sbridge_pvtenum typeenum domainenum mirroring_modefunction sad_pkgfunction numrankfunction numrowfunction numcolfunction list_for_each_entry_fromfunction free_sbridge_devfunction sbridge_get_tolmfunction sbridge_get_tohmfunction ibridge_get_tolmfunction ibridge_get_tohmfunction rir_limitfunction sad_limitfunction interleave_modefunction dram_attrfunction knl_sad_limitfunction knl_interleave_modefunction dram_attr_knlfunction get_memory_typefunction haswell_get_memory_typefunction knl_get_widthfunction sbridge_get_widthfunction __ibridge_get_widthfunction ibridge_get_widthfunction broadwell_get_widthfunction knl_get_memory_typefunction get_node_idfunction haswell_get_node_idfunction knl_get_node_idfunction controllerfunction bankfunction knl_get_hafunction haswell_get_tolmfunction haswell_get_tohmfunction knl_get_tolmfunction knl_get_tohm
Annotated Snippet
module_init(sbridge_init);
module_exit(sbridge_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");
MODULE_AUTHOR("Mauro Carvalho Chehab");
MODULE_AUTHOR("Red Hat Inc. (https://www.redhat.com)");
MODULE_DESCRIPTION("MC Driver for Intel Sandy Bridge and Ivy Bridge memory controllers - "
SBRIDGE_REVISION);
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/pci.h`, `linux/pci_ids.h`, `linux/slab.h`, `linux/delay.h`, `linux/edac.h`, `linux/mmzone.h`.
- Detected declarations: `struct interleave_pkg`, `struct sbridge_pvt`, `struct sbridge_info`, `struct sbridge_channel`, `struct dimm`, `struct pci_id_descr`, `struct pci_id_table`, `struct sbridge_dev`, `struct knl_pvt`, `struct sbridge_pvt`.
- 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.