STRUCT PSZ_BUFFER(9)
π¦ struct psz_buffer(9) π¦
okay so this is a page from the Kernel API Manual, bestie β it's all about struct psz_buffer, no cap π
β¨ NAME β¨
struct psz_buffer β the header of a zone that gets flushed to storage π
πΈ SYNOPSIS πΈ
struct psz_buffer {
#define PSZ_SIG (0x43474244) ;
uint32_t sig;
atomic_t datalen;
atomic_t start;
uint8_t data[];
};
π«Ά Members π«Ά
sigβ the signature that says "hey, I'm a header" π« β literally it'sPSZ_SIGxor'd with thePSZONE-type value.datalenβ how long the data indatais πstartβ the offset intodatawhere the beginning of the stored bytes actually begins π like, the real starting line.dataβ the zone data itself ποΈ periodt.
π SEE ALSO π
Kernel file ./fs/pstore/zone.c and also, in absolutely iconic alphabetical-ish order:
struct psz_kmsg_header(9)struct pstore_zone(9)struct psz_context(9)enum psz_flush_mode(9)psz_recovery(9)register_pstore_zone(9)unregister_pstore_zone(9)
okay that's the whole vibe check π this lil page lives in ./fs/pstore and it's dated October 2026 β so screenshot it & stan later, 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