STRUCT PSTORE_ZONE_INFO(9)
okay bestie, welcome to struct pstore_zone_info(9) from the Kernel API Manual π this is the page for the pstore/zone back-end driver structure, and we are gonna go through every single member together, no skipped details, periodt β¨
π NAME π
struct pstore_zone_info β the pstore/zone back-end driver structure π
β¨ SYNOPSIS β¨
hereβs the whole struct, exactly as it is, bestie β do not let the spacing gaslight you π
struct pstore_zone_info {
struct module *owner;
const char *name;
unsigned long total_size;
unsigned long kmsg_size;
int max_reason;
unsigned long pmsg_size;
unsigned long console_size;
unsigned long ftrace_size;
pstore_zone_read_op read;
pstore_zone_write_op write;
pstore_zone_erase_op erase;
pstore_zone_write_op panic_write;
};
π Members π
okay, member-by-member vibe check π:
ownerβ Module which is responsible for this back-end driver.nameβ Name of the back-end driver.total_sizeβ The total size in bytes pstore/zone can use. It must be greater than4096and be multiple of4096.kmsg_sizeβ The size of oops/panic zone. Zero means disabled, otherwise, it must be multiple ofSECTOR_SIZE(512 Bytes).max_reasonβ Maximum kmsg dump reason to store.pmsg_sizeβ The size of pmsg zone which is the same askmsg_size.console_sizeβ The size of console zone which is the same askmsg_size.ftrace_sizeβ The size of ftrace zone which is the same askmsg_size.readβ The general read operation. Both of the function parameterssizeandoffsetare relative value to storage. On success, the number of bytes should be returned, others mean error.writeβ The same asread, but the following error number:-EBUSYmeans try to write again later.-ENOMSGmeans to try next zone.eraseβ The general erase operation for device with special removing job. Both of the function parameterssizeandoffsetare relative value to storage. Return0on success and others on failure.panic_writeβ The write operation only used for panic case. Itβs optional if you do not care panic log. The parameters are relative value to storage. On success, the number of bytes should be returned, others excluding-ENOMSGmean error.-ENOMSGmeans to try next zone.
π SEE ALSO π
- Kernel file
./include/linux/pstore_zone.hπ
mwah π β this page is from source/version ./include/linux, dated October 2026, and itβs struct pstore_zone_info(9). go be iconic with your zones, bestie π«Άπ
π¦ 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