STRUCT PSZ_KMSG_HEADER(9)
π 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 vibecounterβ the kmsg dump counter, keeping track of things fr frreasonβ the kmsg dump reason, likeoops,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
- 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