psz_recovery(9)
πΎ 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 yourstruct psz_context, the main character of this whole operation. it's the context ofpstore/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 β
0on 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
struct psz_buffer(9)struct psz_kmsg_header(9)struct pstore_zone(9)struct psz_context(9)enum psz_flush_mode(9)register_pstore_zone(9)unregister_pstore_zone(9)
π 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
- 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