STRUCT PSTORE_ZONE(9)
πΎ struct pstore_zone(9) β the Kernel API Manual, bestie edition πΎ
okay so picture this: you're deep in the struct pstore_zone(9) man page from the Kernel API Manual and honestly? it's giving "one little buffer, but make it official." this is the page for a single stored buffer bestie, and yes we're gonna read the whole thing together, no skipping π
β¨ NAME β¨
struct pstore_zone β literally just one single stored buffer π
πΈ SYNOPSIS πΈ
here's the whole shape of her, no cap, copy it exactly:
struct pstore_zone {
loff_t off;
const char *name;
enum pstore_type_id type;
struct psz_buffer *buffer;
struct psz_buffer *oldbuf;
size_t buffer_size;
bool should_recover;
atomic_t dirty;
};
π¦ MEMBERS π¦
okay bestie, let's meet the whole cast π
offβ the zone offset of storage. like, where she sits in the storage, fr fr.nameβ front-end name for this zone. that's her government name β¨typeβ front-end type for this zone. her whole vibe category, iykyk.bufferβ pointer to the data buffer managed by this zone. she's literally in charge of it πoldbufβ pointer to the old data buffer. the throwback version, the archival queen πbuffer_sizeβ bytes inbuffer->data. count 'em πshould_recoverβ whether this zone should recover from storage. lowkey a big deal.dirtyβ whether the data in buffer dirty. (that's the original phrasing, we do not fix it, we simply report it π«Ά)
β Description β
zone structure in memory. that's it, that's the whole description, she's short and iconic π
π§ SEE ALSO π§
Kernel file ./fs/pstore/zone.c β and then the whole friend group:
struct psz_buffer(9)struct psz_kmsg_header(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 is ./fs/pstore, dated October 2026 β so when you cite this in your essay you say "October 2026, ./fs/pstore," slay πβ¨ go be a main character in the kernel, ily, bye π
π¦ 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