ENUM CMD_MODE(9)
π 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 withCMD_ASYNC. the caller needs the buffer of the response. and because we're responsible queens, the caller needs to calliwl_free_respwhen 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
- 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