arch/powerpc/platforms/pseries/kexec.c
Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/pseries/kexec.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/platforms/pseries/kexec.c- Extension
.c- Size
- 1500 bytes
- Lines
- 64
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
Dependency Surface
linux/kernel.hlinux/interrupt.hasm/setup.hasm/page.hasm/firmware.hasm/kexec.hasm/xics.hasm/xive.hasm/smp.hasm/plpar_wrappers.hpseries.h
Detected Declarations
function pseries_kexec_cpu_down
Annotated Snippet
if (get_lppaca()->dtl_enable_mask) {
ret = unregister_dtl(hwcpu);
if (ret) {
pr_err("WARNING: DTL deregistration for cpu "
"%d (hw %d) failed with %d\n",
cpu, hwcpu, ret);
}
}
ret = unregister_slb_shadow(hwcpu);
if (ret) {
pr_err("WARNING: SLB shadow buffer deregistration "
"for cpu %d (hw %d) failed with %d\n",
cpu, hwcpu, ret);
}
ret = unregister_vpa(hwcpu);
if (ret) {
pr_err("WARNING: VPA deregistration for cpu %d "
"(hw %d) failed with %d\n", cpu, hwcpu, ret);
}
}
if (xive_enabled()) {
xive_teardown_cpu();
if (!secondary)
xive_shutdown();
} else
xics_kexec_teardown_cpu(secondary);
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/interrupt.h`, `asm/setup.h`, `asm/page.h`, `asm/firmware.h`, `asm/kexec.h`, `asm/xics.h`, `asm/xive.h`.
- Detected declarations: `function pseries_kexec_cpu_down`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.