STRUCT PSTORE_ZONE_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 than 4096 and be multiple of 4096.
  • kmsg_size β€” The size of oops/panic zone. Zero means disabled, otherwise, it must be multiple of SECTOR_SIZE(512 Bytes).
  • max_reason β€” Maximum kmsg dump reason to store.
  • pmsg_size β€” The size of pmsg zone which is the same as kmsg_size.
  • console_size β€” The size of console zone which is the same as kmsg_size.
  • ftrace_size β€” The size of ftrace zone which is the same as kmsg_size.
  • read β€” The general read operation. Both of the function parameters size and offset are relative value to storage. On success, the number of bytes should be returned, others mean error.
  • write β€” The same as read, but the following error number: -EBUSY means try to write again later. -ENOMSG means to try next zone.
  • erase β€” The general erase operation for device with special removing job. Both of the function parameters size and offset are relative value to storage. Return 0 on 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 -ENOMSG mean error. -ENOMSG means 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