ENUM CMD_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum CMD_MODE(9)

okay bestie, so this one lives in the Kernel API Manual and it's genuinely one of those little enums that runs the whole group chat. it's called enum CMD_MODE and it's literally the answer to "how do we send the host commands?" β€” the whole vibe check of how a command gets shipped out. πŸŽ€


✨ NAME ✨

enum CMD_MODE β€” how to send the host commands ? πŸ¦‹


🌸 SYNOPSIS 🌸

enum CMD_MODE {
    CMD_ASYNC ,
    CMD_WANT_SKB ,
    CMD_SEND_IN_RFKILL ,
    CMD_BLOCK_TXQS

};

πŸ‘‘ Constants πŸ‘‘

these four are the whole cast, no extras, no deleted scenes πŸ’–

  • CMD_ASYNC β€” return right away and don't wait for the response. fire and forget, main character energy, we are not waiting around πŸ’…
  • CMD_WANT_SKB β€” not valid with CMD_ASYNC. the caller needs the buffer of the response. and because we're responsible queens, the caller needs to call iwl_free_resp when done. that's not optional, that's self-care 🫢
  • CMD_SEND_IN_RFKILL β€” send the command even if the NIC is in RF-kill. yeah. even then. 😀
  • CMD_BLOCK_TXQS β€” block TXQs while the comment is executing. (and yes, the page literally says "comment" here, iykyk 😭 β€” that's what's written, and that's what we're keeping, no cap)

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/wireless/intel/iwlwifi/iwl-trans.h β€” the transport layer, like, the whole backstage area 🧚

  • Transport layer - what is it ?(9)
  • Life cycle of the transport layer(9)
  • struct iwl_device_cmd(9)
  • struct iwl_device_tx_cmd(9)
  • enum iwl_hcmd_dataflag(9)
  • struct iwl_host_cmd(9)
  • enum iwl_trans_status(9)
  • struct iwl_dump_sanitize_ops(9)
  • struct iwl_trans_config(9)
  • struct iwl_trans_rxq_dma_data(9)
  • struct iwl_pnvm_image(9)
  • enum iwl_trans_state(9)
  • Platform power management(9)
  • enum iwl_ini_cfg_state(9)
  • struct iwl_dram_data(9)
  • struct iwl_dram_regions(9)
  • struct iwl_fw_mon(9)
  • struct iwl_self_init_dram(9)
  • struct iwl_imr_data(9)
  • struct iwl_pc_data(9)
  • struct iwl_trans_debug(9)
  • struct iwl_trans_info(9)
  • struct iwl_trans(9)
  • iwl_trans_resched_with_nic_access(9)

like, that's the entire friend group right there, say hi to all of them πŸ’œ


ngl this is a short one, but it ate. read it before you go poking at the transport layer, bestie β€” the constants are doing a lot of heavy lifting and they deserve their flowers 🌈

mwah, that's a wrap πŸ’– this little legend came from the source at ./drivers/net/wireless/intel/i... (yes, that's the whole vibe of the path it gives us) and it's dated October 2026 β€” see you in the next one, periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from