setup_kdump_cmdline(9)
π setup_kdump_cmdline(9) π
okay bestie, welcome to the Kernel API Manual β this one's a lil powerpc-flavored gem and we're gonna get you so comfy with it π
β¨ NAME β¨
setup_kdump_cmdline β literally prepends "elfcorehdr=<addr> " to the command line of the kdump kernel so it can export the core π«Ά
πΈ SYNOPSIS πΈ
char * setup_kdump_cmdline (struct kimage *image , char *cmdline ,
unsigned long cmdline_len );
π¦ ARGUMENTS π¦
imageβ the kexec image, bestie. that's your main character β¨cmdlineβ the command line parameters you're updating πcmdline_lenβ the length of those cmdline parameters, not one byte more πΈ
π DESCRIPTION π
so here's the vibe check: the kdump segment must be set up before you call this function. like, no cap, that's a prerequisite β do it first, periodt π
on success it returns a new cmdline buffer for the kdump kernel ππ and otherwise it returns NULL. that's the whole deal, iykyk.
lowkey important: kdump segment setup comes first. don't skip it, bestie π
π SEE ALSO π
- Kernel file
./arch/powerpc/kexec/file_load.cβ the file itself, iconic π setup_purgatory(9)β go read this one too, fr fr β
and that's the page, bestie!! this cutie lives in the ./arch/powerpc/kexec source tree, dated October 2026, and it's filed under setup_kdump_cmdline(9) πβ¨ slay responsibly π¦
π¦ 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