include/linux/ras.h
Source file repositories/reference/linux-study-clean/include/linux/ras.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/ras.h- Extension
.h- Size
- 1938 bytes
- Lines
- 67
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/errno.hlinux/uuid.hlinux/cper.hasm/smp_plat.h
Detected Declarations
struct atl_errfunction ras_userspace_consumersfunction ras_debugfs_initfunction log_non_standard_eventfunction log_arm_hw_errorfunction amd_retire_dram_row
Annotated Snippet
struct atl_err {
u64 addr;
u64 ipid;
u32 cpu;
};
#if IS_ENABLED(CONFIG_AMD_ATL)
void amd_atl_register_decoder(unsigned long (*f)(struct atl_err *));
void amd_atl_unregister_decoder(void);
void amd_retire_dram_row(struct atl_err *err);
unsigned long amd_convert_umc_mca_addr_to_sys_addr(struct atl_err *err);
#else
static inline void amd_retire_dram_row(struct atl_err *err) { }
static inline unsigned long
amd_convert_umc_mca_addr_to_sys_addr(struct atl_err *err) { return -EINVAL; }
#endif /* CONFIG_AMD_ATL */
#if defined(CONFIG_ARM) || defined(CONFIG_ARM64)
#include <asm/smp_plat.h>
/*
* Include ARM-specific SMP header which provides a function mapping mpidr to
* CPU logical index.
*/
#define GET_LOGICAL_INDEX(mpidr) get_logical_index(mpidr & MPIDR_HWID_BITMASK)
#else
#define GET_LOGICAL_INDEX(mpidr) -EINVAL
#endif /* CONFIG_ARM || CONFIG_ARM64 */
#endif /* __RAS_H__ */
Annotation
- Immediate include surface: `asm/errno.h`, `linux/uuid.h`, `linux/cper.h`, `asm/smp_plat.h`.
- Detected declarations: `struct atl_err`, `function ras_userspace_consumers`, `function ras_debugfs_init`, `function log_non_standard_event`, `function log_arm_hw_error`, `function amd_retire_dram_row`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source 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.