ENUM EFX_MCDI_MODE(9)
π¦ NAME π¦
enum efx_mcdi_mode β MCDI transaction mode. Okay so this is from the Kernel API Manual, and itβs short but honestly iconic. Letβs get into it, bestie.
β¨ SYNOPSIS β¨
Hereβs the exact enum shape β keep the commas and spacing exactly as shown, no cap:
enum efx_mcdi_mode {
MCDI_MODE_POLL ,
MCDI_MODE_EVENTS ,
MCDI_MODE_FAIL
};
π Constants π
These three constants are giving very different energy:
MCDI_MODE_POLLβ poll for MCDI completion, until timeoutMCDI_MODE_EVENTSβ wait for anmcdi_event. On timeout, poll onceMCDI_MODE_FAILβ we think MCDI is dead, so fail-fast all calls
Bestie, MCDI_MODE_FAIL is literally the βweβre so doneβ mode: if we think MCDI is dead, all calls fail fast. π
π SEE ALSO π
Go peek at these if you wanna keep the kernel lore straight:
- Kernel file
./drivers/net/ethernet/sfc/siena/mcdi.hβ plusenum efx_mcdi_state(9),struct efx_mcdi_iface(9), andstruct efx_mcdi_data(9)
Mwah π β this cutie lives in ./drivers/net/ethernet/sfc/siena, dated October 2026, and itβs the page for enum efx_mcdi_mode(9). Slay. π
π¦ 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