qed_get_reg...lts_buf_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

qed_get_reg_fifo_results_buf_size β€” returns the required buffer size for reg_fifo results, and yes bestie it's in bytes ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

enum dbg_status qed_get_reg_fifo_results_buf_size (struct qed_hwfn
*p_hwfn , u32 *dump_buf , u32 num_dumped_dwords , u32 *results_buf_size
);

okay so this is the whole function signature, no cap β€” enum dbg_status coming back at you, taking a struct qed_hwfn *p_hwfn, a u32 *dump_buf, a u32 num_dumped_dwords, and a u32 *results_buf_size. It's giving "I just do math on buffer sizes" energy and honestly? iconic πŸŽ€


🌸 ARGUMENTS 🌸

  • p_hwfn β€” HW device data. like, the whole hardware function vibe, the main character of the struct world πŸ‘‘
  • dump_buf β€” the Reg fifo dump buffer. this is where the dumped stuff lives πŸ’–
  • num_dumped_dwords β€” how many dwords got dumped. dwords! not bytes! keep that in mind fr fr 🧚
  • results_buf_size β€” this one's (OUT), meaning the function writes into it, and it's the required buffer size in bytes for the parsed results. she's an output parameter and she knows it πŸ’…

πŸ”₯ RETURN πŸ”₯

Error if the parsing fails β€” ok otherwise. that's it, that's the whole vibe check 😭


⭐ SEE ALSO ⭐

first up, the kernel file:

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

and then the whole friend group, all of them, no one left behind 🫢


✨ and that's the page, bestie ✨ this one lives in ./drivers/net/ethernet/qlogic/qed and it's dated October 2026, so like… future vibes πŸ‘‘πŸ¦‹ go read your buffer sizes, ily, bye πŸ’œ

πŸ“¦ where this page comes from