STRUCT PSTORE_BLK_CONFIG(9)
β¨ 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 achar[80], so plenty of room for the name π«Άmax_reasonβ the maximum kmsg dump reason to store to the block device. anenum 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 longtoo, 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
- 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