setup_kdump_cmdline(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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