qed_dbg_pro...ump_buf_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ qed_dbg_protection_override_get_dump_buf_size β€” a kernel API manual moment πŸ’…

okay so bestie, we're in the Kernel API Manual today (the page header literally says qed_dbg_pro...ump_buf_size(9), yes it's truncated, no we're not gonna fight about it) and the vibes are extremely driver-internals. Buckle up πŸŽ€


✨ NAME ✨

qed_dbg_protection_override_get_dump_buf_size β€” literally just tells you how big a buffer you need for the protection override window results. that's it. that's the whole job. no cap πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

enum dbg_status qed_dbg_protection_override_get_dump_buf_size (struct
qed_hwfn *p_hwfn , struct qed_ptt *p_ptt , u32 *buf_size );

three args, returns a enum dbg_status, iconic behavior honestly 🌸


πŸŽ€ ARGUMENTS πŸŽ€

  • p_hwfn β€” your HW device data. the main character of this whole situation 🫢
  • p_ptt β€” the Ptt window used for writing the registers. that's its whole thing, it writes registers, slay ✨
  • buf_size β€” (OUT) the required buffer size, and bestie it's measured in dwords πŸ’… this is where the answer goes, so don't forget to actually pass a pointer, i'm begging 😭

πŸ’€ RETURN πŸ’€

it returns an error if the following holds:

  • The version wasn't set

Otherwise? returns ok. that's the whole flowchart, lowkey refreshing 🌈

fr fr, that's the entire error condition β€” version not set = error, version set = ok. no hidden lore, no extra clauses πŸ“

πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives here:

./drivers/net/ethernet/qlogic/qed/qed_dbg_hsi.h

and here's the full friend group, all of them, every single one, i'm not leaving a single bestie behind πŸ§šπŸ’œ


and that's the page!! πŸ¦‹ source/version + date tea: this lil beauty comes from ./drivers/net/ethernet/qlogic/qed and it's dated October 2026. go off, qed directory, we love you πŸ‘‘πŸ’– periodt ✨

πŸ“¦ where this page comes from