machine_kexec_prepare(9)
π machine_kexec_prepare(9) π
okay so this is the Kernel API Manual page for machine_kexec_prepare(9), and bestie it is short but it matters. π«Ά
πΈ NAME πΈ
machine_kexec_prepare β Prepare for a kexec reboot. β¨
β¨ SYNOPSIS β¨
int machine_kexec_prepare (struct kimage *kimage );
π ARGUMENTS π
kimageβ the original page literally says-- undescribed --. Thatβs it, no cap. π Itβs thestruct kimage *from the synopsis.
π DESCRIPTION π
So the core kexec code calls this when a kernel image is loaded. Its whole thing is a vibe check: if thereβs no way of hotplugging CPUs, or if CPUs are stuck in the kernel, it forbids loading a kexec kernel. π
That is extremely on purpose, because it avoids a panic once we hit machine_kexec. Iconic protective behavior honestly. π₯
Not me being dramatic, but this guard is literally the difference between βwe checked firstβ and βwe panicked later.β π
π¦ SEE ALSO π¦
Kernel file ./arch/arm64/kernel/machine_kexec.c plus these besties: kexec_image_info(9), kexec_segment_flush(9), machine_kexec(9), machine_crash_shutdown(9). π
mwah π β this one comes from ./arch/arm64/kernel, dated October 2026, and itβs called machine_kexec_prepare(9). periodt. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms