STRUCT PERSISTENT_RAM_ZONE(9)
πΎ struct persistent_ram_zone(9) β Kernel API Manual π
πΈ NAME πΈ
okay so bestie, struct persistent_ram_zone is literally the details of a persistent RAM zone (PRZ) used as a pstore backend. that's the whole main-character job of this struct β¨
β¨ SYNOPSIS β¨
here's the whole struct, exact and untouched, no cap:
struct persistent_ram_zone {
phys_addr_t paddr;
size_t size;
void *vaddr;
char *label;
enum pstore_type_id type;
u32 flags;
raw_spinlock_t buffer_lock;
struct persistent_ram_buffer *buffer;
size_t buffer_size;
char *par_buffer;
char *par_header;
struct rs_control *rs_decoder;
int corrected_bytes;
int bad_blocks;
struct persistent_ram_ecc_info ecc_info;
char *old_log;
size_t old_log_size;
};
π§ Members π§
tiny heads-up: vaddr is chillin' in the struct above, but this page's Members list doesn't give it its own description β so I'm not gonna invent one, bestie π. the rest are right here:
paddrβ physical address of the mapped RAM area.sizeβ size of the mapping.labelβ unique name of this PRZ.typeβ frontend type for this PRZ.flagsβ holdsPRZ_FLAGS_*bits.buffer_lockβ locks access to the buffer'ssizebytes andstartoffset.bufferβ pointer to the actual RAM area managed by this PRZ.buffer_sizeβ bytes inbuffer->data(not including any trailing ECC bytes).par_bufferβ pointer intobuffer->datacontaining the ECC bytes forbuffer->data.par_headerβ pointer intobuffer->datacontaining the ECC bytes for the buffer header (i.e. all fields up todata).rs_decoderβ RSLIB instance for doing ECC calculations.corrected_bytesβ ECC corrected bytes accounting since boot.bad_blocksβ ECC uncorrectable bytes accounting since boot.ecc_infoβ ECC configuration details.old_logβ saved copy ofbuffer->dataprior to the most recent wipe.old_log_sizeβ bytes contained inold_log.
π SEE ALSO π
Kernel file ./fs/pstore/ram_internal.hβ that's the kernel file this page points you at, bestie π
mwah π β this page came from ./fs/pstore, is dated October 2026, and answers to struct persistent_ram_zone(9) π
π¦ 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