drivers/ras/ras.c
Source file repositories/reference/linux-study-clean/drivers/ras/ras.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ras/ras.c- Extension
.c- Size
- 3231 bytes
- Lines
- 128
- Domain
- Driver Families
- Bucket
- drivers/ras
- 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/init.hlinux/ras.hlinux/uuid.hras/ras_event.h
Detected Declarations
function amd_atl_register_decoderfunction amd_atl_unregister_decoderfunction amd_convert_umc_mca_addr_to_sys_addrfunction log_non_standard_eventfunction log_arm_hw_errorfunction ras_initfunction parse_ras_parammodule init ras_initexport amd_atl_register_decoderexport amd_atl_unregister_decoderexport amd_convert_umc_mca_addr_to_sys_addrexport log_non_standard_event
Annotated Snippet
subsys_initcall(ras_init);
#if defined(CONFIG_ACPI_EXTLOG) || defined(CONFIG_ACPI_EXTLOG_MODULE)
EXPORT_TRACEPOINT_SYMBOL_GPL(extlog_mem_event);
#endif
EXPORT_TRACEPOINT_SYMBOL_GPL(mc_event);
EXPORT_TRACEPOINT_SYMBOL_GPL(non_standard_event);
EXPORT_TRACEPOINT_SYMBOL_GPL(arm_event);
static int __init parse_ras_param(char *str)
{
#ifdef CONFIG_RAS_CEC
parse_cec_param(str);
#endif
return 1;
}
__setup("ras", parse_ras_param);
Annotation
- Immediate include surface: `linux/init.h`, `linux/ras.h`, `linux/uuid.h`, `ras/ras_event.h`.
- Detected declarations: `function amd_atl_register_decoder`, `function amd_atl_unregister_decoder`, `function amd_convert_umc_mca_addr_to_sys_addr`, `function log_non_standard_event`, `function log_arm_hw_error`, `function ras_init`, `function parse_ras_param`, `module init ras_init`, `export amd_atl_register_decoder`, `export amd_atl_unregister_decoder`.
- Atlas domain: Driver Families / drivers/ras.
- 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.