psz_recovery(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ psz_recovery(9) β€” the kernel API manual, bestie edition πŸ’Ύ

okay so welcome to psz_recovery, a page straight out of the Kernel API Manual (that's the manual name, iykyk πŸŽ€) β€” and honestly? it's a little one, but it's doing a lot of emotional heavy lifting. let's get into it ✨


πŸ¦‹ NAME πŸ¦‹

psz_recovery β€” recover data from storage πŸ’–

like, the whole point. put the data back. rescue the vibes.


✨ SYNOPSIS ✨

int psz_recovery (struct psz_context *cxt );

that's it. that's the whole call. one argument, one int coming back at you 🫢


🌸 ARGUMENTS 🌸

  • cxt β€” "the context of pstore/zone" 🧚 that's your struct psz_context, the main character of this whole operation. it's the context of pstore/zone, periodt.

πŸ’… DESCRIPTION πŸ’…

so what does "recovery" actually mean here? πŸ’­

recovery means reading data back from storage after rebooting 🌈

that's the whole thing. reboot happens, storage still has your stuff, and this is the function that goes and gets it back. lowkey iconic of it, fr fr. no cap, that's the entire description β€” she's concise πŸ‘‘


⭐ RETURN ⭐

  • 0 on success πŸ₯³ slay
  • others on failure 😭 (so like, anything that isn't 0. not a vibe.)

πŸ”₯ SEE ALSO πŸ”₯

go read these next, bestie, they're all connected 🫢

Kernel file ./fs/pstore/zone.c


πŸ’€ tiny page, but every word counts β€” don't skip the SEE ALSOs, they're the friend group this function rolls with πŸ“

and that's the tea πŸŽ€ this page lives at ./fs/pstore, dated October 2026, and it's filed under psz_recovery(9) β€” mwah, go recover some data, bestie πŸ’œπŸ’…

πŸ“¦ where this page comes from