STRUCT PSZ_BUFFER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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's PSZ_SIG xor'd with the PSZONE-type value.
  • datalen β€” how long the data in data is πŸ“
  • start β€” the offset into data where 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:


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