ENUM IWL_FW_ERROR_CONTEXT(9)
π 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 forIWL_ERR_CONTEXT_ABORTafter 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 theIWL_ERR_CONTEXT_FROM_OPMODEcontext, 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
- 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