ENUM IWL_FW_ERROR_CONTEXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum iwl_fw_error_context(9) β€” the error dump context enum, bestie

okay so this is a page from the Kernel API Manual (enum iwl_fw_error_context(9), yeah the title's a whole thing) and honestly it's short but it matters β€” it's the enum that tells the error-dump code where it's being called from, and you gotta get it right or locks go bye-bye πŸ”₯


✨ NAME ✨

enum iwl_fw_error_context β€” literally the "error dump context" enum. that's the vibe. it's giving "who called me and am i allowed to touch the locks" πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

no cap, here's the whole thing verbatim:

enum iwl_fw_error_context {
    IWL_ERR_CONTEXT_WORKER ,
    IWL_ERR_CONTEXT_FROM_OPMODE ,
    IWL_ERR_CONTEXT_ABORT

};

three constants. short list. iconic. ✨


πŸ¦‹ CONSTANTS πŸ¦‹

okay bestie, memorize these, they're the entire personality of this enum:

  • IWL_ERR_CONTEXT_WORKER β€” the regular one, coming from worker context. so opmode must acquire locks and must also check for IWL_ERR_CONTEXT_ABORT after acquiring locks. yes really, don't skip the re-check, that's the whole trap 🫢
  • IWL_ERR_CONTEXT_FROM_OPMODE β€” this one means the context is in a call originating from the opmode, like while resetting or stopping the device. so opmode must not acquire any locks. none. zero. periodt. πŸš«πŸ”’
  • IWL_ERR_CONTEXT_ABORT β€” after lock acquisition, this one indicates that the dump already happened via another callback (currently only while stopping the device) via the IWL_ERR_CONTEXT_FROM_OPMODE context, and this call must be aborted. like, the dump's already done, take the L and bail πŸ’€
fr fr the lock rules are the whole point here β€” one context wants you to grab locks, the other screams at you not to. don't mix them up 😭

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/net/wireless/intel/iwlwifi/iwl-op-mode.h
  • Operational mode - what is it ?(9)
  • Life cycle of the Operational mode(9)
  • enum iwl_fw_error_type(9)
  • struct iwl_fw_error_dump_mode(9)
  • struct iwl_op_mode_ops(9)
  • struct iwl_op_mode(9)

like, go read them, they're the supporting cast and they ate πŸ‘‘


🌸 anyway that's the page! source is ./drivers/net/wireless/intel/i..., dated October 2026, and it's page enum iwl_fw_error_context(9) of the Kernel API Manual β€” mwah, love u, go check your locks before you dump πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from