nvram_pstore_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ nvram_pstore_write(9) β€” the nvram pstore write callback, bestie ✨

okay so this one is from the Kernel API Manual, and it's lowkey a tiny little function with a big job 🫢


✨ NAME ✨

nvram_pstore_write β€” literally the pstore write callback for nvram πŸ’…


🌸 SYNOPSIS 🌸

int nvram_pstore_write (struct pstore_record *record );

πŸŽ€ ARGUMENTS πŸŽ€

  • record β€” the pstore record you're writing, and bestie it comes with the id that's to be set πŸ‘‘ so yeah, the id gets set in there, no cap.

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea πŸ“: this gets called by pstore_dump when an oops or panic report gets logged into the printk buffer 😭 like when things go bad bad. and it returns 0 on a successful write ✨ slay.

ngl this is the "something went horribly wrong, save the receipts" function. iconic behavior honestly πŸ’€

🌈 SEE ALSO 🌈


and that's the whole vibe, bestie πŸ’– this page lives in ./arch/powerpc/kernel, it's dated October 2026, and it's from the Kernel API Manual β€” go off, king πŸ‘‘βœ¨πŸŽ€

πŸ“¦ where this page comes from