STRUCT IWL_FW_DBG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct iwl_fw_dbg(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual β€” yes that's the manual name, and yes we're about to read a struct definition together like it's the group chat gossip of the day. this one is struct iwl_fw_dbg, and it's literally the debug data holder. let's get into it πŸ’…


✨ NAME ✨

struct iwl_fw_dbg β€” debug data. that's it, that's the vibe. it's the struct that keeps all your debug info together, and honestly? iconic 🫢


🌸 SYNOPSIS 🌸

here's the whole thing, character for character, because we do not mess with the code:

struct iwl_fw_dbg {
    struct iwl_fw_dbg_dest_tlv_v1 *dest_tlv;
    u8 n_dest_reg;
    struct iwl_fw_dbg_conf_tlv *conf_tlv[FW_DBG_CONF_MAX];
    struct iwl_fw_dbg_trigger_tlv *trigger_tlv[FW_DBG_TRIGGER_MAX];
    size_t trigger_tlv_len[FW_DBG_TRIGGER_MAX];
    struct iwl_fw_dbg_mem_seg_tlv *mem_tlv;
    size_t n_mem_tlv;
    u32 dump_mask;
 };

like, look at all those fields. main character struct energy fr fr πŸ‘‘


πŸ’– Members πŸ’–

okay now the fun part β€” every single member, explained, no skips, no summaries, we do not leave anyone out of the group chat:

  • dest_tlv β€” points to the debug destination TLV (typically SRAM or DRAM). so it's telling you where the debug stuff is headed β€” sram or dram, depending. lowkey important ngl πŸ¦‹
  • n_dest_reg β€” the num of reg_ops in dest_tlv. just keeping count, that's all. πŸ’«
  • conf_tlv β€” array of pointers to configuration HCMDs. an array, bestie. plural. πŸ’…
  • trigger_tlv β€” array of pointers to triggers TLVs. more arrays, more pointers, we stay unbothered. πŸ”₯
  • trigger_tlv_len β€” lengths of the dbg_trigger_tlv entries. it's giving "size matters" but in a struct way πŸ™ˆ
  • mem_tlv β€” Runtime addresses to dump. runtime addresses, specifically. πŸ“
  • n_mem_tlv β€” number of runtime addresses. yes, paired with mem_tlv above, they're a matching set, cute. πŸŽ€
  • dump_mask β€” bitmask of dump regions. it's a mask, it masks, we respect it. 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, bestie, i promise they're worth it:

  • Kernel file ./drivers/net/wireless/intel/iwlwifi/fw/img.h enum
  • iwl_ucode_type(9)
  • struct iwl_fw_paging(9)
  • enum iwl_fw_type(9)
  • struct iwl_fw(9)

and that's the whole page, no cap. this one came from ./drivers/net/wireless/intel/i... (yes it's truncated in the source, i'm not about to invent the rest, i would never 😭) and it's dated October 2026. slay, go forth and debug, you're literally so smart πŸ’–βœ¨πŸŒŸ

πŸ“¦ where this page comes from