STRUCT PSZ_KMSG_HEADER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct psz_kmsg_header(9) β€” the kmsg dump header, bestie edition πŸ’–

okay so real quick, this page lives in the Kernel API Manual (yes that one, the big one) and it's all about struct psz_kmsg_header β€” the kmsg dump-specific header that gets flushed to storage. literally its whole job. let's get into it 🫢


✨ NAME ✨

struct psz_kmsg_header β€” the kmsg dump–specific header that you flush to storage πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

struct psz_kmsg_header {
  #define PSTORE_KMSG_HEADER_MAGIC 0x4dfc3ae5 ;
    uint32_t magic;
    struct timespec64 time;
    bool compressed;
    uint32_t counter;
    enum kmsg_dump_reason reason;
    uint8_t data[];
 };

like, that's the whole shape of it. no notes. ✨


🌸 Members 🌸

  • magic β€” the magic number for the kmsg dump header πŸ”₯ (iconic lil identity check, we love her)
  • time β€” when the kmsg dump got triggered ⏰
  • compressed β€” whether it's compressed or not, yes/no, that's the whole vibe
  • counter β€” the kmsg dump counter, keeping track of things fr fr
  • reason β€” the kmsg dump reason, like oops, panic, etc 😭 (the why of it all)
  • data β€” pointer to the log data πŸ’Ύ the actual content, the main character energy

πŸ¦‹ Description πŸ¦‹

So this is a sub-header for a kmsg dump, and it trails after psz_buffer. that's it, that's the description. she's a supporting character but she's essential, ok? πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/pstore/zone.c, plus all these besties: struct psz_buffer(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) 🌈


and that's the page πŸ’– source lives at ./fs/pstore, dated October 2026 β€” mwah, go read the kernel, you got this πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from