STRUCT PSTORE_BLK_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct pstore_blk_config(9) ✨

okay bestie, so this is a page out of the Kernel API Manual, section 9 β€” we're looking at struct pstore_blk_config, and honestly? it's giving "the pstore_blk backend configuration" and nothing less πŸ’…

🌸 NAME 🌸

struct pstore_blk_config β€” literally the configuration for the pstore_blk backend. that's the whole vibe. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole struct, copy-paste energy, no cap:

struct pstore_blk_config {
    char device[80];
    enum kmsg_dump_reason max_reason;
    unsigned long kmsg_size;
    unsigned long pmsg_size;
    unsigned long console_size;
    unsigned long ftrace_size;
 };

πŸ‘‘ Members πŸ‘‘

okay now the members, one by one, main character energy each:

  • device β€” the name of the desired block device. like, which block device do you want, bestie. it's a char[80], so plenty of room for the name 🫢
  • max_reason β€” the maximum kmsg dump reason to store to the block device. an enum kmsg_dump_reason, so it's got opinions.
  • kmsg_size β€” total size for kmsg dumps. unsigned long, naturally.
  • pmsg_size β€” total size of the pmsg storage area. yes, unsigned long too, they're all matching, it's a coordinated outfit πŸ’œ
  • console_size β€” total size of the console storage area. that's the size, of the console storage area. iconic.
  • ftrace_size β€” total size for ftrace logging data, and listen β€” for all CPUs. not one, all of them. πŸ”₯

🌈 SEE ALSO 🌈

  • the kernel file ./include/linux/pstore_blk.h β€” go read it, iykyk πŸ“–
  • struct pstore_device_info(9)
  • pstore_blk_get_config(9)
fr fr though, if you're poking at the block-device side of pstore, these three are your group chat. don't leave them on read. 😭

so yeah, that's the whole thing β€” struct's from ./include/linux, dated October 2026, and that's the tea πŸ’– stay slay, keep your sizes unsigned long, and go read your headers πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from